]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
improve variable detection
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 28 Feb 2023 12:00:22 +0000 (13:00 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 28 Feb 2023 12:00:22 +0000 (13:00 +0100)
products/compil_scripts/ParaView-5.11.0.sh
products/compil_scripts/ParaView-5.8.0.sh
products/compil_scripts/ParaView-5.9.0.sh
products/compil_scripts/med-4.1.1.sh
products/compil_scripts/med.sh

index bd934d1cb8f5a6cadee8e7b78a8d12123830c925..6407a6f27bfba3706b797003180fd1eb3f6976c6 100755 (executable)
@@ -80,8 +80,7 @@ else
 fi
 
 ### VTK general settings
-if [ -n "$SALOME_USE_64BIT_IDS" ]
-then
+if [ "$SALOME_USE_64BIT_IDS" == "1" ]; then
     echo "WARNING: user requested VTK 64 bits encoding..."
     CMAKE_OPTIONS+=" -DVTK_USE_64BIT_IDS:BOOL=ON"
 else
index 457772519c29133a7678c16c3309c7a84fc0a8f9..2f8229435fb05b094fa0f02de99cb88d7cdc81d3 100755 (executable)
@@ -68,8 +68,7 @@ else
 fi
 
 ### VTK general settings
-if [ -n "$SALOME_USE_64BIT_IDS" ]
-then
+if [ "$SALOME_USE_64BIT_IDS" == "1" ]; then
     echo "WARNING: user requested VTK 64 bits encoding..."
     CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_USE_64BIT_IDS:BOOL=ON"
 else
index a935d83ed6634298c4bc0330eeb9b32ec12dac54..eaf6ff093a1c1f5e0a861d7ccc3dc058fce384af 100755 (executable)
@@ -73,8 +73,7 @@ else
 fi
 
 ### VTK general settings
-if [ -n "$SALOME_USE_64BIT_IDS" ]
-then
+if [ "$SALOME_USE_64BIT_IDS" == "1" ]; then
     echo "WARNING: user requested VTK 64 bits encoding..."
     CMAKE_OPTIONS+=" -DVTK_USE_64BIT_IDS:BOOL=ON"
 else
index 80e4f96d2c9a81915d2becea0eb8b56ba3f7ba16..0a0124b8dd0cdbd5fc40600c221d6025a7cd3b25 100755 (executable)
@@ -18,8 +18,7 @@ else
     export F77=gfortran
 fi
 
-if [ -n "$SALOME_USE_64BIT_IDS" ]
-then
+if [ "$SALOME_USE_64BIT_IDS" == "1" ]; then
     echo "WARNING: user requested 64 bits encoding for integers..."
     export  FFLAGS="-g -O2 -ffixed-line-length-none -fdefault-integer-8"
     export FCFLAGS="-fdefault-integer-8"
index 886fa7ecacea8e2701b6a67a75671348808097f1..812b5a16e435a7f57cefdcc73c75c5c9ae793081 100755 (executable)
@@ -30,8 +30,7 @@ else
     export F77=gfortran
 fi
 
-if [ -n "$SALOME_USE_64BIT_IDS" ]
-then
+if [ "$SALOME_USE_64BIT_IDS" == "1" ]; then
     echo "WARNING: user requested 64 bits encoding for integers..."
     export FFLAGS=-fdefault-integer-8
     export FFLAGS=$FFLAGS' -g -O2 -ffixed-line-length-none'