c++ - How to set MSVC Target Platform Version with CMake? -


i'm searching way set target platform version of msvc project generated cmake. found following ticket in cmake issue tracker closed. i'm latest 3.9.1 version of cmake. solution described there seems not work. tried

set (cmake_system_version 8.1) 

in cmakelists.txt.

how set terget platform version when using cmake?

afterwords:

now checked setting cmake_system_version command line when generating solution works want if possible able set cmakelists.txt file.

cmake -g "visual studio 14 2015 win64" -dcmake_system_version=8.1 ..\source\ 

at least able set cmake gui.

using set (cmake_system_version 8.1 cache type internal force) before first usage of project solves problem.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -