]> Creatis software - creaToolsTools.git/commitdiff
conflict gdcm and vtk version
authordavila <eduardo.davila@creatis.insa-lyon.fr>
Tue, 22 Jul 2014 07:03:36 +0000 (09:03 +0200)
committerdavila <eduardo.davila@creatis.insa-lyon.fr>
Tue, 22 Jul 2014 07:03:36 +0000 (09:03 +0200)
Linux/installscript
Linux/scripts/ThirdParty-install-gdcm.sh

index 8f9ae93b93e8eb73374a896621139a1eec0687f6..4823c0227badd9a1d5e2d5d58eb9f5605343cb04 100755 (executable)
@@ -23,6 +23,8 @@
 
 #!/bin/bash -e
 
+scriptDirName=$(dirname $(readlink -f $0) )
+
 #########################################################################
 ############     Local Functions  #######################################
 #########################################################################
@@ -347,16 +349,19 @@ if [ `checkVal $command all 3rd 3rd-base` == true ] ; then
 fi
 
 
+
 # vtk
 if [ `checkVal $command all 3rd 3rd-vtk` == true ] ; then
     bigDisplay "INSTALL VTK"
-    bash scripts/ThirdParty-install-VTK.sh
+    source scripts/ThirdParty-install-VTK.sh
+    cd $scriptDirName
 fi
 
 # gdcm
 if [ `checkVal $command all 3rd 3rd-gdcm` == true ] ; then
     bigDisplay "INSTALL $gdcmVersion"
-    bash scripts/ThirdParty-install-gdcm.sh
+    source scripts/ThirdParty-install-gdcm.sh
+    cd $scriptDirName
 fi
 
 # itk
index a289ad784512d602300b37d090f9d6bde6211eea..18771acf05847046a24a0840e8934713444e0ef2 100644 (file)
@@ -127,7 +127,7 @@ then
   cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
   ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
   cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefixThird CMakeCache.txt
-  cmake -D VTK_DIR:PATH=$dirInstallVTK 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
   make -j $corenumber
   make install