summaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2023-03-13 00:02:51 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2023-03-13 00:02:51 +0000
commit63f00fcb3e47127b32281fbca063aee5bd63b4be (patch)
treee57452ffcae786b1aba4acf8c1fc040703dcf1b6 /science
parentbenchmarks/polygraph: fix build on powerpc* (diff)
science/dkh: 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:28 (include)
Diffstat (limited to 'science')
-rw-r--r--science/dkh/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/science/dkh/Makefile b/science/dkh/Makefile
index bcf5fe7d65de..5bafeaae98ad 100644
--- a/science/dkh/Makefile
+++ b/science/dkh/Makefile
@@ -11,6 +11,9 @@ WWW= http://www.reiher.ethz.ch/software/dkh-x2c.html
LICENSE= GPLv3
USES= cmake fortran
+.if !exists(/usr/include/omp.h)
+CMAKE_OFF= ENABLE_OPENMP
+.endif
USE_GITHUB= yes
GH_ACCOUNT= psi4
USE_LDCONFIG= yes