]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
be able to compile PERSALYS in DEBUG mode...
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 12 Apr 2022 10:28:05 +0000 (12:28 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 12 Apr 2022 10:28:05 +0000 (12:28 +0200)
products/compil_scripts/PERSALYS-v12.0.sh

index bcad863b5906a7ddf519e676f88026b5c9dcf964..68d22fdbdae621206a58b3b876f7c75d943428ff 100755 (executable)
@@ -57,6 +57,11 @@ fi
 
 CMAKE_OPTIONS+=" -DCMAKE_FIND_ROOT_PATH=ON"
 CMAKE_OPTIONS+=" -DSWIG_EXECUTABLE:PATH=$(which swig)"
+f [ -n "$SAT_DEBUG" ]; then
+    CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Debug"
+else
+    CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Release"
+fi
 
 echo
 echo "*** cmake" $CMAKE_OPTIONS