summaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2023-03-13 00:02:53 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2023-03-13 00:02:53 +0000
commitfa21a49844774bb5e4f2993852ade4d4c9287f54 (patch)
treeab01e82a5394683e3c0a632c6fdd8322897dc1a4 /science
parentscience/dkh: fix build without libomp (diff)
science/erd: fix build without libomp
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage CMake Error at /usr/local/share/cmake/Modules/FindOpenMP.cmake:261 (try_compile): Failed to configure test project build system. Call Stack (most recent call first): /usr/local/share/cmake/Modules/FindOpenMP.cmake:537 (_OPENMP_GET_FLAGS) cmake/autocmake_omp.cmake:30 (find_package) CMakeLists.txt:27 (include)
Diffstat (limited to 'science')
-rw-r--r--science/erd/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/science/erd/Makefile b/science/erd/Makefile
index 45d6017c712a..2629c3a8ef98 100644
--- a/science/erd/Makefile
+++ b/science/erd/Makefile
@@ -12,6 +12,9 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake fortran
+.if !exists(/usr/include/omp.h)
+CMAKE_OFF= ENABLE_OPENMP
+.endif
USE_GITHUB= yes
GH_ACCOUNT= psi4
USE_LDCONFIG= yes