git: c4278f42a264 - main - devel/vexcl: fix build without libomp
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Mar 2023 00:05:52 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=c4278f42a264a755e0e1a1c71c92d4d6653cd919 commit c4278f42a264a755e0e1a1c71c92d4d6653cd919 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2023-03-13 00:03:01 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2023-03-13 00:03:01 +0000 devel/vexcl: 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:207 (find_package) --- devel/vexcl/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devel/vexcl/Makefile b/devel/vexcl/Makefile index e8fc63eb8bcc..4de66b02bee6 100644 --- a/devel/vexcl/Makefile +++ b/devel/vexcl/Makefile @@ -17,6 +17,9 @@ BUILD_DEPENDS= ${HPP_DEPENDS} \ RUN_DEPENDS= ${HPP_DEPENDS} USES= cmake:testing localbase:ldflags +.if !exists(/usr/include/omp.h) +USES+= compiler:gcc-c++11-lib +.endif USE_GITHUB= yes GH_ACCOUNT= ddemidov