X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Install_ThirdParty%2Fscripts%2Finstall_thirdparty_dlls_cmake.bat;h=2e791bfd03c414963e46751a714e309c4e9f7ec7;hb=67a0a4de0e7d0b76e4bd6e1727da7802bb77fcf7;hp=abb2613c1e99526560c31afb63f736c6baba3dcd;hpb=be9323e35ba1081cc4d260388182ffbff3136869;p=creaToolsTools.git diff --git a/Install_ThirdParty/scripts/install_thirdparty_dlls_cmake.bat b/Install_ThirdParty/scripts/install_thirdparty_dlls_cmake.bat index abb2613..2e791bf 100644 --- a/Install_ThirdParty/scripts/install_thirdparty_dlls_cmake.bat +++ b/Install_ThirdParty/scripts/install_thirdparty_dlls_cmake.bat @@ -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