summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorhalx99 <halx99@live.com>2023-03-15 03:17:21 (GMT)
committerBrad King <brad.king@kitware.com>2023-03-15 14:03:16 (GMT)
commit6546305b010c372fdf7f7000e6139f5cb1b61354 (patch)
tree166b9beb9f6b30e1a61703eaf525b483eecacb46 /Source/cmTarget.cxx
parent9fe6771b80c4ef5c16ea4180eae4cd698564898a (diff)
downloadCMake-6546305b010c372fdf7f7000e6139f5cb1b61354.zip
CMake-6546305b010c372fdf7f7000e6139f5cb1b61354.tar.gz
CMake-6546305b010c372fdf7f7000e6139f5cb1b61354.tar.bz2
VS: Add CMAKE_VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION variable
Provide a way to initialize the `VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION` target property on targets. It sets `WindowsTargetPlatformMinVersion` in `.vcxproj` files.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index ec87271..9d43c64 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -552,6 +552,7 @@ TargetProperty const StaticTargetProperties[] = {
{ "JOB_POOL_PRECOMPILE_HEADER"_s, IC::CanCompileSources },
// -- Visual Studio
{ "VS_NO_COMPILE_BATCHING"_s, IC::CanCompileSources },
+ { "VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION"_s, IC::CanCompileSources},
// Output location properties
{ "ARCHIVE_OUTPUT_DIRECTORY"_s, IC::CanCompileSources },