1 :: Windows CMake has a dependency on desktop msbuild.exe because it generates
2 :: Visual Studio *.vcxproj solutions.
3 :: This file has cmake in its name to avoid accidentally introducing
4 :: another dependency on desktop msbuild.exe
5 @if not defined _echo @echo off
8 set "__ProjectDir=%~dp0"
10 call "%__ProjectDir%"\setup_vs_tools.cmd
12 REM setup_vs_tools.cmd will correctly echo error message.
13 if NOT '%ERRORLEVEL%' == '0' exit /b 1
15 :: Clear the 'Platform' env variable for this session, as it's a per-project setting within the build, and
16 :: misleading value (such as 'MCD' in HP PCs) may lead to build breakage (issue: #69).
21 echo Running: msbuild.exe %*
24 if NOT [%ERRORLEVEL%]==[0] (