git: 792ecada9ce3 - 2025Q1 - 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:40:20 UTC
The branch 2025Q1 has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=792ecada9ce31993420ffe08deac3c51988f2381 commit 792ecada9ce31993420ffe08deac3c51988f2381 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:40:14 +0000 math/casadi: Fix build on systems w/out OpenMP by defaulting OPENMP to OFF on such systems (cherry picked from commit 55c81710bb0b1ecfd26e8208ac0adff20d08a602) --- math/casadi/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/math/casadi/Makefile b/math/casadi/Makefile index d4eccdf90fcd..119498f9c2cb 100644 --- a/math/casadi/Makefile +++ b/math/casadi/Makefile @@ -25,9 +25,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