]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
modify nlopt variables name for openturns 1.19, 1.20.1 and 1.21 compil scripts openturns_with_embedded_nlopt
authorGuytri KASTANE <guytri.kastane@cea.fr>
Thu, 18 Apr 2024 10:38:39 +0000 (12:38 +0200)
committerGuytri KASTANE <guytri.kastane@cea.fr>
Thu, 18 Apr 2024 10:38:39 +0000 (12:38 +0200)
products/compil_scripts/openturns-1.19.sh
products/compil_scripts/openturns-1.20.1.sh
products/compil_scripts/openturns-1.21.sh

index 62b18ded0f9afb8742335c0b132fd72523461834..e83ec1d78b978fbebb4f9a61c0aee203e59c38df 100755 (executable)
@@ -101,8 +101,8 @@ fi
 
 ## nlopt
 if [ -n "$NLOPT_ROOT_DIR" ] && [ "$SAT_nlopt_IS_NATIVE" != "1" ]; then
-    CMAKE_OPTIONS+=" -DNLOPT_INCLUDE_DIRS:STRING=${NLOPT_ROOT_DIR}/include"
-    CMAKE_OPTIONS+=" -DNLOPT_LIBRARIES:STRING=${NLOPT_ROOT_DIR}/lib"
+    CMAKE_OPTIONS+=" -DNLOPT_INCLUDE_DIR:STRING=${NLOPT_ROOT_DIR}/include"
+    CMAKE_OPTIONS+=" -DNLOPT_LIBRARY:STRING=${NLOPT_ROOT_DIR}/lib/libnlopt.so"
     CMAKE_OPTIONS+=" -DNLOPT_DIR:STRING=${NLOPT_ROOT_DIR}"
 fi
 
index 303d938d0c21f80b96f26d83948cbe69a8a54797..31e58a0fa9a6a685c5e55280ffdfaeec7bffb8b8 100755 (executable)
@@ -101,8 +101,8 @@ fi
 
 ## nlopt
 if [ -n "$NLOPT_ROOT_DIR" ] && [ "$SAT_nlopt_IS_NATIVE" != "1" ]; then
-    CMAKE_OPTIONS+=" -DNLOPT_INCLUDE_DIRS:STRING=${NLOPT_ROOT_DIR}/include"
-    CMAKE_OPTIONS+=" -DNLOPT_LIBRARIES:STRING=${NLOPT_ROOT_DIR}/lib"
+    CMAKE_OPTIONS+=" -DNLOPT_INCLUDE_DIR:STRING=${NLOPT_ROOT_DIR}/include"
+    CMAKE_OPTIONS+=" -DNLOPT_LIBRARY:STRING=${NLOPT_ROOT_DIR}/lib/libnlopt.so"
     CMAKE_OPTIONS+=" -DNLOPT_DIR:STRING=${NLOPT_ROOT_DIR}"
 fi
 
index 2ceb922b0a9c70a63fdd70a90e6547e7422fb66f..078a97ab6b02c1d8612753ec75b4035ad16a7ad8 100755 (executable)
@@ -99,8 +99,8 @@ fi
 
 ## nlopt
 if [ -n "$NLOPT_ROOT_DIR" ] && [ "$SAT_nlopt_IS_NATIVE" != "1" ]; then
-    CMAKE_OPTIONS+=" -DNLOPT_INCLUDE_DIRS:STRING=${NLOPT_ROOT_DIR}/include"
-    CMAKE_OPTIONS+=" -DNLOPT_LIBRARIES:STRING=${NLOPT_ROOT_DIR}/lib"
+    CMAKE_OPTIONS+=" -DNLOPT_INCLUDE_DIR:STRING=${NLOPT_ROOT_DIR}/include"
+    CMAKE_OPTIONS+=" -DNLOPT_LIBRARY:STRING=${NLOPT_ROOT_DIR}/lib/libnlopt.so"
     CMAKE_OPTIONS+=" -DNLOPT_DIR:STRING=${NLOPT_ROOT_DIR}"
 fi