<div dir="ltr"><div>In our environment we have:</div><div>CMake 3.8.1</div><div>VS Enterprise 2017 15.1 (26403.7)</div><div>Ninja 1.7.2</div><div><br></div><div>Since we are building on Win Server 2012R2 and targeting Win7 we do define the MS macros (_WIN32_WINNT, WINVER, _WIN32_WINDOWS, NTDDI_VERSION) to ensure we only get access to the features that Win7 has.</div><div><br></div><div>When we look at the "MS include directories" in Visual Studio it shows as referencing the Windows Kits\8.1 include directories</div><div>When we run with Ninja, we run in a cmd window that is titled "x64 Native Tools Command Prompt for VS 2017" - and the includes in its environment variables are the Windows Kits\10.0 ones.</div><div><br></div><div>Is there a way to have CMake generate for Ninja so it uses the same "Windows Kits" directory as MSVS does? We have tried setting CMAKE_SYSTEM_VERSION to 6.1. That doesn't seem to have made a difference.  What is that supposed to change in a Ninja/MSVS  build?</div><div><br></div><div>Are there some other settings we should be making to ensure the Ninja and the MSVS builds work from the same directories?</div><div><br></div><div>Thanks,</div><div>-Ken P.<br></div><div><br></div><div><br></div></div>