Skip to content

Commit

Permalink
Improved CMakeConfig.cmd to work better across multiple versions of
Browse files Browse the repository at this point in the history
Visual Studio.
  • Loading branch information
kimlaine committed Jun 10, 2019
1 parent 4882cda commit 21f4cdc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions native/src/CMakeConfig.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ if not exist "%CMAKEPATH%" (

echo Found CMake at %CMAKEPATH%

cd %~dp0
if not exist ".config" (
mkdir .config
)
cd .config

echo Running CMake configuration in %cd%

rem Identify Visual Studio version and set CMake generator accordingly.
set CMAKEGEN=""
if "%VSVERSION%"=="15.0" (
Expand All @@ -57,8 +49,16 @@ if "%VSVERSION%"=="15.0" (
exit 1
)

set CONFIGDIR=".config\%VSVERSION%"
cd %~dp0
if not exist %CONFIGDIR% (
mkdir %CONFIGDIR%
)
cd %CONFIGDIR%
echo Running CMake configuration in %cd%

rem Call CMake.
"%CMAKEPATH%" .. ^
"%CMAKEPATH%" ..\.. ^
-G %CMAKEGEN% ^
-A x64 ^
-DALLOW_COMMAND_LINE_BUILD=1 ^
Expand Down

0 comments on commit 21f4cdc

Please sign in to comment.