]> Creatis software - creaToolsTools.git/blobdiff - Install_ThirdParty/scripts/install_thirdparty_dlls_cmake.bat
ThirdPartyLibraries script updates
[creaToolsTools.git] / Install_ThirdParty / scripts / install_thirdparty_dlls_cmake.bat
index c1929dc60d78127752e8ce3f4679eee73c64efaf..aa2f07b95779b46740ef65a0e7427df21d53e1eb 100644 (file)
@@ -17,6 +17,9 @@ if %PROCESSOR_ARCHITECTURE%==x86 (
 echo ----End Asking Architecture--------
 
 set thirdpartyGeneration=%1
+set buildType=%2
+
+
 set version="3.0.1-win32"
 
 set thirdparty_cmake=%cd%\..\cmake
@@ -25,7 +28,7 @@ set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.
 
 set thirdpartydllspath=%thirdpartyGeneration%\thirdparty_temp\creaThirdParty_dlls
 set sourcepath=%thirdparty_cmake%\crea_ThirdParty_dlls
-set binpath=%thirdpartyGeneration%\thirdparty_bin\crea_ThirdParty_dlls_Bin
+set binpath=%thirdpartyGeneration%\thirdparty_bin\%buildType%\crea_ThirdParty_dlls_Bin
 set installpath="ProgramFilesPath_x86\creatools\crea_ThirdParty_dlls"
 
 if not exist %vcvarsall% set zipPath="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
@@ -36,10 +39,7 @@ if not exist %vcvarsall% (
 
 call %vcvarsall%
 
-rmdir %binpath% /s /q
-
 mkdir %binpath%
-
 cd %binpath%
 
 cmake -G"Visual Studio 10"  -H%sourcepath% -B%binpath%
@@ -54,8 +54,6 @@ set installerPath="%thirdpartydllspath%\thirdparty_bin\crea_ThirdParty_dlls_Bin\
 if exist installerPath (
 mkdir %thirdpartyGeneration%\thirdparty_installers
 move /Y %installerPath% %thirdpartyGeneration%\thirdparty_installers
-rmdir %binpath% /s /q
-rmdir %thirdpartydllspath% /s /q
 )
 
 exit /B
\ No newline at end of file