git: a762cf40252f - main - math/amgcl: fix build without libomp
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Mar 2023 00:05:42 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a762cf40252fb4a2ab0a5fe0ddb710baef4d1718
commit a762cf40252fb4a2ab0a5fe0ddb710baef4d1718
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-03-13 00:02:42 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-03-13 00:02:42 +0000
math/amgcl: fix build without libomp
CMake Error at /usr/local/share/cmake/Modules/FindOpenMP.cmake:261 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
/usr/local/share/cmake/Modules/FindOpenMP.cmake:537 (_OPENMP_GET_FLAGS)
CMakeLists.txt:60 (find_package)
---
math/amgcl/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/math/amgcl/Makefile b/math/amgcl/Makefile
index ba48c79bd8ba..f36efd4b96ae 100644
--- a/math/amgcl/Makefile
+++ b/math/amgcl/Makefile
@@ -14,6 +14,9 @@ BUILD_DEPENDS= boost-libs>0:devel/boost-libs
RUN_DEPENDS= ${PREFIX}/include/boost/property_tree/ptree.hpp:devel/boost-libs
USES= cmake
+.if !exists(/usr/include/omp.h)
+USES+= compiler:gcc-c++11-lib
+.endif
USE_GITHUB= yes
GH_ACCOUNT= ddemidov