math/casadi: Fix build on systems w/out OpenMP by defaulting OPENMP to OFF on such systems

This commit is contained in:
Yuri Victorovich 2025-02-19 01:36:26 -08:00
parent cc6e9fdbaf
commit 55c81710bb
1 changed files with 5 additions and 1 deletions

View File

@ -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