mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
build-deps - simplify build/install commands
This commit is contained in:
+8
-8
@@ -920,11 +920,11 @@ IF [%~3]==[] (
|
|||||||
call cecho.cmd 0 13 "Building %TARGET% of %DEPENDENCY_NAME%. Please be patient, this will take a while."
|
call cecho.cmd 0 13 "Building %TARGET% of %DEPENDENCY_NAME%. Please be patient, this will take a while."
|
||||||
|
|
||||||
:: whole program optimization avoids Visual C++ hanging when compiling 32-bit release OCCT up to version 7.4.0
|
:: whole program optimization avoids Visual C++ hanging when compiling 32-bit release OCCT up to version 7.4.0
|
||||||
IF %COMPILE_WITH_WPO%==FALSE (
|
set COMPILE_WITH_WPO_SETTING=
|
||||||
%MSBUILD_CMD% %1 /p:configuration=%2;platform=%VS_PLATFORM% /t:"%TARGET%"
|
IF NOT %COMPILE_WITH_WPO%==FALSE (
|
||||||
) ELSE (
|
set COMPILE_WITH_WPO_SETTING=;WholeProgramOptimization=TRUE
|
||||||
%MSBUILD_CMD% %1 /p:configuration=%2;platform=%VS_PLATFORM%;WholeProgramOptimization=TRUE /t:"%TARGET%"
|
|
||||||
)
|
)
|
||||||
|
%MSBUILD_CMD% %1 /p:configuration=%2;platform=%VS_PLATFORM%%COMPILE_WITH_WPO_SETTING% /t:"%TARGET%"
|
||||||
exit /b %ERRORLEVEL%
|
exit /b %ERRORLEVEL%
|
||||||
|
|
||||||
:: InstallCMakeProject - Builds the INSTALL project of CMake-based project
|
:: InstallCMakeProject - Builds the INSTALL project of CMake-based project
|
||||||
@@ -936,11 +936,11 @@ pushd %1
|
|||||||
call cecho.cmd 0 13 "Installing %2 %DEPENDENCY_NAME%. Please be patient, this will take a while."
|
call cecho.cmd 0 13 "Installing %2 %DEPENDENCY_NAME%. Please be patient, this will take a while."
|
||||||
|
|
||||||
:: whole program optimization avoids Visual C++ hanging when compiling 32-bit release OCCT up to version 7.4.0
|
:: whole program optimization avoids Visual C++ hanging when compiling 32-bit release OCCT up to version 7.4.0
|
||||||
IF %COMPILE_WITH_WPO%==FALSE (
|
set COMPILE_WITH_WPO_SETTING=
|
||||||
%MSBUILD_CMD% INSTALL.%VCPROJ_FILE_EXT% /p:configuration=%2;platform=%VS_PLATFORM%
|
IF NOT %COMPILE_WITH_WPO%==FALSE (
|
||||||
) ELSE (
|
set COMPILE_WITH_WPO_SETTING=;WholeProgramOptimization=TRUE
|
||||||
%MSBUILD_CMD% INSTALL.%VCPROJ_FILE_EXT% /p:configuration=%2;platform=%VS_PLATFORM%;WholeProgramOptimization=TRUE
|
|
||||||
)
|
)
|
||||||
|
%MSBUILD_CMD% INSTALL.%VCPROJ_FILE_EXT% /p:configuration=%2;platform=%VS_PLATFORM%%COMPILE_WITH_WPO_SETTING%
|
||||||
set RET=%ERRORLEVEL%
|
set RET=%ERRORLEVEL%
|
||||||
popd
|
popd
|
||||||
exit /b %RET%
|
exit /b %RET%
|
||||||
|
|||||||
Reference in New Issue
Block a user