diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2025-02-19 09:36:26 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2025-02-19 09:38:23 +0000 |
commit | 55c81710bb0b1ecfd26e8208ac0adff20d08a602 (patch) | |
tree | 81280aa685c947ce16b5f283c8225c2b36b48f33 | |
parent | cc6e9fdbafe898733877f1e6289cd27ed44b3b0a (diff) |
math/casadi: Fix build on systems w/out OpenMP by defaulting OPENMP to OFF on such systems
-rw-r--r-- | math/casadi/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/math/casadi/Makefile b/math/casadi/Makefile index 079aa30e0201..f2ccfd613af7 100644 --- a/math/casadi/Makefile +++ b/math/casadi/Makefile @@ -27,9 +27,13 @@ CMAKE_OFF= WITH_DEEPBIND WITH_BUILD_BLASFEO CMAKE_OFF+= WITH_EXAMPLES OPTIONS_DEFINE= BLASFEO BONMIN CLANG IPOPT LAPACK OPENMP QPOASES THREADS -OPTIONS_DEFAULT= BLASFEO BONMIN IPOPT LAPACK OPENMP QPOASES THREADS +OPTIONS_DEFAULT= BLASFEO BONMIN IPOPT LAPACK QPOASES THREADS OPTIONS_SUB= yes +.if exists(/usr/include/omp.h) +OPTIONS_DEFAULT+= OPENMP +.endif + BLASFEO_DESC= Build with BLASFEO BLASFEO_CMAKE_BOOL= WITH_BLASFEO BLASFEO_BUILD_DEPENDS= blasfeo>0:math/blasfeo |