Date: Mon, 29 Jul 2024 15:10:25 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: b77eb5a4a114 - main - science/cardioid: fix build without libomp Message-ID: <202407291510.46TFAPvh061103@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=b77eb5a4a114b66b0d512a5e9df6961988acc157 commit b77eb5a4a114b66b0d512a5e9df6961988acc157 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-07-29 12:26:55 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2024-07-29 15:10:13 +0000 science/cardioid: fix build without libomp CMake Error at /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) --- science/cardioid/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/science/cardioid/Makefile b/science/cardioid/Makefile index d56181105cc0..49fd7b8bc115 100644 --- a/science/cardioid/Makefile +++ b/science/cardioid/Makefile @@ -14,7 +14,7 @@ LIB_DEPENDS= libblas.so:math/blas \ liblapack.so:math/lapack RUN_DEPENDS= bash:shells/bash -USES= cmake:testing compiler:c++11-lang shebangfix +USES= cmake:testing shebangfix USE_GITHUB= yes GH_ACCOUNT= LLNL @@ -51,4 +51,12 @@ OPENMPI_CMAKE_ON= -DENABLE_MPI=ON OPENMP_CMAKE_BOOL= ENABLE_OPENMP OPENMP_BROKEN_OFF= https://github.com/LLNL/cardioid/issues/14 +.include <bsd.port.options.mk> + +.if (!exists(/usr/include/omp.h) && ${PORT_OPTIONS:MOPENMP}) +USES+= compiler:gcc-c++11-lib +.else +USES+= compiler:c++11-lang +.endif + .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202407291510.46TFAPvh061103>