]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/creaVtkVariables.sh
#3449 Bug compilation with OpenMP Mac
[creaToolsTools.git] / Linux / scripts / creaVtkVariables.sh
index 66387ba377ce3f22040bed381a20c36520e6b7cb..86f1004eba8a17830fb2f8b3c1631796404d49c0 100644 (file)
 # $3 : ON/OFF (generate doc)
 
 currentdir=$2
+TDx=$4
+
 binfolder=$2/creatools_bin/$1Bin
 cd $binfolder
 
-TDx=$4
-#This line es not working in MacOs
-#cxxFlags='-fPIC -fopenmp '
-cxxFlags='-fPIC  '
+
+
+ if [ $OperatingSystem = "MacOS" ]
+  then
+    cxxFlags='-fPIC -Xclang -fopenmp=libomp   '
+  elif
+       cxxFlags='-fPIC  -fopenmp   '
+  fi
+
+
 
 # TDx is declared in: CreaTools-configure.sh
 if [ "$TDx" == "ON" ]; then