Skip to content

Commit

Permalink
Update prepare-binary-addons.dev.bat script
Browse files Browse the repository at this point in the history
  • Loading branch information
garbear committed Jan 23, 2023
1 parent cc5c75c commit fe8055a
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@ FOR %%b IN (%*) DO (
)
SETLOCAL DisableDelayedExpansion

rem set Visual C++ build environment
call "%VS140COMNTOOLS%..\..\VC\bin\amd64\vcvars64.bat" || call "%VS140COMNTOOLS%..\..\VC\bin\vcvars32.bat"

SET WORKDIR=%WORKSPACE%

IF "%WORKDIR%" == "" (
SET WORKDIR=%CD%\..\..
SET WORKDIR=%CD%\..\..\..
)

rem setup some paths that we need later
Expand Down Expand Up @@ -76,8 +73,8 @@ IF "%addon%" NEQ "" (
)

rem execute cmake to generate Visual Studio 12 project files
cmake "%ADDONS_PATH%" -G "Visual Studio 16 2019" ^
-DCMAKE_BUILD_TYPE=Release ^
cmake "%ADDONS_PATH%" -G "Visual Studio 17 2022" ^
-DCMAKE_BUILD_TYPE=Debug ^
-DCMAKE_USER_MAKE_RULES_OVERRIDE="%SCRIPTS_PATH%/CFlagOverrides.cmake" ^
-DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX="%SCRIPTS_PATH%/CXXFlagOverrides.cmake" ^
-DCMAKE_INSTALL_PREFIX=%WORKDIR%\addons ^
Expand Down

0 comments on commit fe8055a

Please sign in to comment.