diff options
author | Julien Jemine <julien.jemine@gmail.com> | 2020-04-28 14:55:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-04-29 11:35:57 (GMT) |
commit | 197b4cbe186cd31a490fc3cfcaace55bd7123829 (patch) | |
tree | 92b65d5e04bfa70113bf6b39b952b8168dd2b044 /Help | |
parent | 73f81c5070e7880efe5acfc1827f60524116cee1 (diff) | |
download | CMake-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')
-rw-r--r-- | Help/manual/cmake-properties.7.rst | 1 | ||||
-rw-r--r-- | Help/prop_tgt/VS_PLATFORM_TOOLSET.rst | 10 | ||||
-rw-r--r-- | Help/release/dev/vs-platform-toolset.rst | 6 |
3 files changed, 17 insertions, 0 deletions
diff --git a/Help/manual/cmake-properties.7.rst b/Help/manual/cmake-properties.7.rst index 4966f86..9031e9c 100644 --- a/Help/manual/cmake-properties.7.rst +++ b/Help/manual/cmake-properties.7.rst @@ -372,6 +372,7 @@ Properties on Targets /prop_tgt/VS_MOBILE_EXTENSIONS_VERSION /prop_tgt/VS_NO_SOLUTION_DEPLOY /prop_tgt/VS_PACKAGE_REFERENCES + /prop_tgt/VS_PLATFORM_TOOLSET /prop_tgt/VS_PROJECT_IMPORT /prop_tgt/VS_SCC_AUXPATH /prop_tgt/VS_SCC_LOCALPATH 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". diff --git a/Help/release/dev/vs-platform-toolset.rst b/Help/release/dev/vs-platform-toolset.rst new file mode 100644 index 0000000..c5062c7 --- /dev/null +++ b/Help/release/dev/vs-platform-toolset.rst @@ -0,0 +1,6 @@ +vs-platform-toolset +------------------- + +* The :prop_tgt:`VS_PLATFORM_TOOLSET` target property was added to tell + :ref:`Visual Studio Generators` for VS 2010 and above to override + the platform toolset. |