summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt/VS_PLATFORM_TOOLSET.rst
diff options
context:
space:
mode:
authorJulien Jemine <julien.jemine@gmail.com>2020-04-28 14:55:03 (GMT)
committerBrad King <brad.king@kitware.com>2020-04-29 11:35:57 (GMT)
commit197b4cbe186cd31a490fc3cfcaace55bd7123829 (patch)
tree92b65d5e04bfa70113bf6b39b952b8168dd2b044 /Help/prop_tgt/VS_PLATFORM_TOOLSET.rst
parent73f81c5070e7880efe5acfc1827f60524116cee1 (diff)
downloadCMake-197b4cbe186cd31a490fc3cfcaace55bd7123829.zip
CMake-197b4cbe186cd31a490fc3cfcaace55bd7123829.tar.gz
CMake-197b4cbe186cd31a490fc3cfcaace55bd7123829.tar.bz2
VS: Add option for per-target PlatformToolset
Add a `VS_PLATFORM_TOOLSET` target property to set `PlatformToolset` in the `.vcxproj` file for specific targets. Document that this is safe only when the named toolset uses the same underlying compiler as the primary toolset. Fixes: #17429
Diffstat (limited to 'Help/prop_tgt/VS_PLATFORM_TOOLSET.rst')
-rw-r--r--Help/prop_tgt/VS_PLATFORM_TOOLSET.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Help/prop_tgt/VS_PLATFORM_TOOLSET.rst b/Help/prop_tgt/VS_PLATFORM_TOOLSET.rst
new file mode 100644
index 0000000..f8f2e8e
--- /dev/null
+++ b/Help/prop_tgt/VS_PLATFORM_TOOLSET.rst
@@ -0,0 +1,10 @@
+VS_PLATFORM_TOOLSET
+-------------------
+
+Overrides the platform toolset used to build a target.
+
+Only supported when the compiler used by the given toolset is the
+same as the compiler used to build the whole source tree.
+
+This is especially useful to create driver projects with the toolsets
+"WindowsUserModeDriver10.0" or "WindowsKernelModeDriver10.0".