How to pass latest Windows SDK version to CMake?

Viewed 3627

How to pass latest Windows SDK version to CMake so I don't need to go in Visual Studio and put it manually from Configuration Proprieties - General?

VS

I've search on internet and I've found the CMAKE_SYSTEM_VERSION variable and I've tried to use

set (CMAKE_SYSTEM_VERSION 10.0)

and

set (CMAKE_SYSTEM_VERSION 10.0 (latest installed version))

but I still get version 10.0.18362.0 set as default

0 Answers
Related