# $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