mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.57k stars 1.62k forks source link

Expose way to set Windows Sdk #3202

Open TingPing opened 6 years ago

TingPing commented 6 years ago

It is required for any sort of sanity when multiple Sdks are installed (for example when using AppVeyor CI).

You can pass /p:WindowsTargetPlatformVersion to msbuild or define WindowsTargetPlatformVersion in the project files.

CMake supports this: https://cmake.org/cmake/help/latest/variable/CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION.html

jpakkane commented 6 years ago

This would probably be a per-project setting rather than a per-target one?

TingPing commented 6 years ago

Yes.

TingPing commented 6 years ago

It is also something that I'd say is up for the builder/distributor to set not the project necessarily (maybe it could require newer than specific versions?).