1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

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)
This commit is contained in:
Piotr Kubaj 2024-07-29 14:26:55 +02:00
parent 5c4975a092
commit b77eb5a4a1

View File

@ -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>