git: 55c81710bb0b - main - math/casadi: Fix build on systems w/out OpenMP by defaulting OPENMP to OFF on such systems
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 19 Feb 2025 09:38:25 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=55c81710bb0b1ecfd26e8208ac0adff20d08a602
commit 55c81710bb0b1ecfd26e8208ac0adff20d08a602
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-02-19 09:36:26 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-02-19 09:38:23 +0000
math/casadi: Fix build on systems w/out OpenMP by defaulting OPENMP to OFF on such systems
---
math/casadi/Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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