]> Creatis software - creaToolsTools.git/blobdiff - Install_ThirdParty/scripts/install_thirdparty_dlls_cmake.bat
DFCH: Update for x84 and x64 bit compilation
[creaToolsTools.git] / Install_ThirdParty / scripts / install_thirdparty_dlls_cmake.bat
index abb2613c1e99526560c31afb63f736c6baba3dcd..2e791bfd03c414963e46751a714e309c4e9f7ec7 100644 (file)
@@ -37,12 +37,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_DLL_PATH:PATH=%thirdpartydllspath% CMakeCache.txt
 cmake CMakeCache.txt