]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #43521: Openturns: switch off CXX17 support which breaks universal binary. See...
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 14 Nov 2024 16:15:23 +0000 (17:15 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 14 Nov 2024 16:15:23 +0000 (17:15 +0100)
products/compil_scripts/openturns-1.23.sh

index 059f6440e928479c570e7a800e38e254fd7e3080..ace5d3e07f1cd7033bc00e408cbe11dc8db1d744 100755 (executable)
@@ -35,6 +35,16 @@ if [ -n "$TBB_ROOT_DIR" ] && [ "$SAT_tbb_IS_NATIVE" != "1" ]; then
     CMAKE_OPTIONS+=" -Dtbb_DIR=${TBB_ROOT_DIR}/lib/cmake"
 fi
 
+# https://github.com/openturns/openturns/issues/2820
+case $LINUX_DISTRIBUTION in
+    CO7)
+        echo "WARNING: switching OFF USE_CXX17"
+        CMAKE_OPTIONS+=" -DUSE_CXX17=OFF"
+        ;;
+    *)
+        ;;
+esac
+
 # https://github.com/persalys/persalys/issues/745
 case $LINUX_DISTRIBUTION in
     UB22*|CO8*|CO9*|FD36|FD37|FD38)