CMAKE_SYSTEM_VERSION seems to have no effect
I have a system with both vs2015 and vs2017 installed. The latter installed version 10.0.15063.0 of the sdk, so now cmake by default picks that one, even when I use the visual studio 2015 generator.
If I understood correctly, the way to specify the old one, 10.0.10240.0, is to pass it as paramter of the CMAKE_SYSTEM_VERSION cmake parameter. So what I tried to do was to run (on the first invocation, I know it cannot be changed later): cmake -G"Visual Studio 14 2015 Win64" -DCMAKE_SYSTEM_VERSION=10.0.10240.0 ..
When I check the vcxproj generated files, I still see this: 10.0.15063.0, so it's not picking the one I specify.
Am I doing something wrong? This is with latest cmake 3.8.1 version.