]> Creatis software - creaToolsTools.git/blobdiff - Install_ThirdParty/scripts/install_thirdparty_libraries_cmake.bat
DFCH: Update for x84 and x64 bit compilation
[creaToolsTools.git] / Install_ThirdParty / scripts / install_thirdparty_libraries_cmake.bat
index e54703f48afc83129a835d3d601f0fa5bea04347..cd24ef5c8bec4b4b4529ded35695d92ea98f989e 100644 (file)
@@ -36,12 +36,21 @@ if not exist %vcvarsall% (
   exit
 )
 
-call %vcvarsall%
+if %PROCESSOR_ARCHITECTURE%==x86 (
+       call %vcvarsall%
+) else (
+       call %vcvarsall% amd64
+)
 
 mkdir %binpath%
 cd %binpath%
 
-cmake -G"Visual Studio 10"  -H%sourcepath% -B%binpath%
+if %PROCESSOR_ARCHITECTURE%==x86 (
+       cmake -G"Visual Studio 10"  -H%sourcepath% -B%binpath%
+) else (
+       cmake -G"Visual Studio 10 Win64"  -H%sourcepath% -B%binpath%
+)
+
 cmake -D CMAKE_INSTALL_PREFIX:PATH=%installpath% CMakeCache.txt
 cmake -D CREA_LIBRARY_SOURCE_PATH:PATH=%thirdpartylibpath% CMakeCache.txt
 cmake CMakeCache.txt