]> Creatis software - creaToolsTools.git/commitdiff
#3451 OpenMP MacOs
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 3 Aug 2022 11:14:20 +0000 (13:14 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 3 Aug 2022 11:14:20 +0000 (13:14 +0200)
Linux/scripts/CreaTools-load.sh
Linux/scripts/creaMaracasVariables.sh
Linux/scripts/creaVtkVariables.sh

index ae1503e2913d4d51477b0b3abef5876b99b6bd78..201b93b246430aeefd874667ac28007c6931eb64 100644 (file)
@@ -72,7 +72,6 @@ then
    mkdir -p $generationdir
    mkdir -p $generationdir/creatools_source
    mkdir -p $generationdir/creatools_bin
-   mkdir -p $generationdir/creatools_install   
 fi
 
 cd $generationdir
@@ -88,7 +87,7 @@ if [ true = true ]
 then
   rm -rf creatools_source
   rm -rf creatools_bin
-  rm -rf creatools_install
+  rm -rf ci
   mkdir -p $generationdir/creatools_source
 fi
 fi
@@ -124,31 +123,31 @@ then
  #      mv $libidosource-ESRF $libidosource             
           
          cd $generationdir/creatools_source/$creasource
-                git checkout vtk8itk5wx3-macos
+                git checkout vtk9itk5wx3-macos
          cd $generationdir/creatools_source/$bbtksource
-                git checkout vtk8itk5wx3-macos
+                git checkout vtk9itk5wx3-macos
          cd $generationdir/creatools_source/$creavtksource
-                git checkout vtk8itk5wx3-macos
+                git checkout vtk9itk5wx3-macos
          cd $generationdir/creatools_source/$creamaracassource
-                git checkout vtk8itk5wx3-macos
+                git checkout vtk9itk5wx3-macos
                 cd $generationdir/creatools_source/$creabrukersource
-                git checkout vtk8itk5wx3-macos
+                git checkout vtk9itk5wx3-macos
          cd $generationdir/creatools_source/$creaimagesource
-                git checkout vtk8itk5wx3-macos
+                git checkout vtk9itk5wx3-macos
          cd $generationdir/creatools_source/$creacontourssource
-                git checkout vtk8itk5wx3-macos
+                git checkout vtk9itk5wx3-macos
          cd $generationdir/creatools_source/$crearigidregistrationssource
-                git checkout vtk8itk5wx3-macos
+                git checkout vtk9itk5wx3-macos
          cd $generationdir/creatools_source/$bbtkgeditorsource
-                git checkout vtk8itk5wx3-macos
+                git checkout vtk9itk5wx3-macos
          cd $generationdir/creatools_source/$creatoolssource
-                git checkout vtk8itk5wx3-macos
+                git checkout vtk9itk5wx3-macos
          cd $generationdir/creatools_source/$creaenvironmentsource
-         git checkout vtk8itk5wx3-macos
+         git checkout vtk9itk5wx3-macos
          cd $generationdir/creatools_source/$creaminitoolssource
-         git checkout vtk8itk5wx3-macos
+         git checkout vtk9itk5wx3-macos
          cd $generationdir/creatools_source/$creatoolstoolssource
-         git checkout vtk8itk5wx3-macos
+         git checkout vtk9itk5wx3-macos
       fi
 
       if [ $sourcesFrom = HTML ]
index a833631e2134b70254554bf8b6e4169fa12f1198..8af85ccf7baa0b84e9cbf0b26c54dd7d01446cc2 100644 (file)
@@ -36,19 +36,11 @@ binfolder=$2/creatools_bin/$1Bin
 
 cd $binfolder
 
- if [ $OperatingSystem = "MacOS" ]
-  then
-     cmake -D  CMAKE_CXX_COMPILER:FILE=/usr/bin/g++     
-## /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ 
-
-    cxxFlags='-fPIC -std=c++11 -Xclang -fopenmp=libomp  '
-  elif
-    cxxFlags='-fPIC  -std=c++11 -fopenmp   '
-  fi
+cxxFlags='-fPIC     '
 
 # TDx is declared in: CreaTools-configure.sh
 if [ "$TDx" == "ON" ]; then
-  cxxFlags=$cxxFlags'-F/Library/Frameworks -DVTK_USE_TDX '
+  cxxFlags=$cxxFlags' -F/Library/Frameworks -DVTK_USE_TDX '
 fi
 
 cmake -D CMAKE_CXX_FLAGS:STRING="$cxxFlags"                                 CMakeCache.txt
index 86f1004eba8a17830fb2f8b3c1631796404d49c0..16f9cc0c27263ba4663e453e5e3e182760118c3c 100644 (file)
@@ -34,20 +34,11 @@ TDx=$4
 binfolder=$2/creatools_bin/$1Bin
 cd $binfolder
 
-
-
- if [ $OperatingSystem = "MacOS" ]
-  then
-    cxxFlags='-fPIC -Xclang -fopenmp=libomp   '
-  elif
-       cxxFlags='-fPIC  -fopenmp   '
-  fi
-
-
+cxxFlags='-fPIC   '
 
 # TDx is declared in: CreaTools-configure.sh
 if [ "$TDx" == "ON" ]; then
-  cxxFlags=$cxxFlags'-F/Library/Frameworks '
+  cxxFlags=$cxxFlags' -F/Library/Frameworks '
 fi
 
 cmake -D CMAKE_CXX_FLAGS:STRING="$cxxFlags"                 CMakeCache.txt