Skip to content
Snippets Groups Projects
Commit b77eb5a4 authored by Piotr Kubaj's avatar Piotr Kubaj
Browse files

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)
parent 5c4975a0
No related branches found
No related tags found
No related merge requests found
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment