From: Eduardo DAVILA Date: Thu, 6 Dec 2018 14:39:42 +0000 (+0100) Subject: #3224 creaToolsTools Feature New Normal - vtk8itk4wx3-mingw64 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=633ea27369398159baef0f3e0442967097a65754;p=creaToolsTools.git #3224 creaToolsTools Feature New Normal - vtk8itk4wx3-mingw64 --- diff --git a/Linux/scripts/CreaTools-compile.sh b/Linux/scripts/CreaTools-compile.sh index cf35dd3..3cab2f5 100644 --- a/Linux/scripts/CreaTools-compile.sh +++ b/Linux/scripts/CreaTools-compile.sh @@ -135,6 +135,7 @@ then #if [ true = false ] if [ true = true ] then + bash $scriptDir/cmakemod.sh $creasource $generationdir $installPrefix $buildType bash $scriptDir/creaVariables.sh $creasource $generationdir $docgeneration bash $scriptDir/compilemod.sh $buildType $creasource $generationdir $corenumber diff --git a/Linux/scripts/creaVariables.sh b/Linux/scripts/creaVariables.sh index 93646d3..0f34967 100644 --- a/Linux/scripts/creaVariables.sh +++ b/Linux/scripts/creaVariables.sh @@ -31,13 +31,15 @@ binfolder=$2/creatools_bin/$1Bin cd $binfolder -IF(APPLE) - set(cxxFlags -fPI -ObjC++C) -ELSE(APPLE) - set(cxxFlags -fPI) -ENDIF(APPPLE) -cmake -D CMAKE_CXX_FLAGS:STRING=${cxxFlags} -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CMakeCache.txt +if [[ "$OSTYPE" == "linux-gnu" ]]; then + cxxFlags='-fPIC' +elif [[ "$OSTYPE" == "darwin" ]]; then + cxxFlags='-fPIC -ObjC++C' +fi + + +cmake -D CMAKE_CXX_FLAGS:STRING=$cxxFlags -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CMakeCache.txt cmake CMakeCache.txt cmake CMakeCache.txt