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