]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/ThirdParty-install-gdcm.sh
#3446 vtk8itk5wx3-macos in Linux
[creaToolsTools.git] / Linux / scripts / ThirdParty-install-gdcm.sh
index 12265a6dd987a684d088562b1f0819c35be5b65a..fb97632963a0e26a12a7f8ca75508c52596fe72c 100644 (file)
@@ -40,6 +40,15 @@ fi
 
 source $PWD/scripts/CreaTools-configure.sh
 
+#EED 2021-11-15
+  source $PWD/scripts/LocalFunctions.sh
+  if [ `getDistrib` == "CentOS" ] && [ `getKernelVersion` < "2.6.34" ]
+  then
+       stdCompiler=c++98
+  else
+       stdCompiler=c++11
+  fi
+
 
    echo "------"
    echo $PWD/scripts/CreaTools-configure.sh
@@ -115,6 +124,14 @@ fi
 ## #   tar -xvzf gdcm13_2018_05_28_vtk8.tar.gz
 ##  fi
 
+
+cxxFlags='  '
+if [ $TDx == "ON" ]
+then
+    cxxFlags=$cxxFlags'-F/Library/Frameworks -DVTK_USE_TDX '
+fi
+
+
     wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/gdcm13_2019_06_17_vtk8.zip
        unzip gdcm13_2019_06_17_vtk8.zip
 
@@ -137,6 +154,7 @@ then
 
   cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
   ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
+  cmake -D CMAKE_CXX_FLAGS:STRING="$cxxFlags"                                 CMakeCache.txt
   cmake -D CMAKE_BUILD_TYPE:STRING=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefixThird CMakeCache.txt
   cmake -D VTK_DIR:PATH=$VTK_DIR CMakeCache.txt
   cmake -D GDCM_VTK:BOOL=ON -D GDCM_NAME_SPACE:STRING=gdcm13 CMakeCache.txt