mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
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
7 lines
228 B
CMake
7 lines
228 B
CMake
enable_language(CXX)
|
|
|
|
add_library(NormalPlatformToolset foo.cpp)
|
|
add_library(OverridenPlatformToolset foo.cpp)
|
|
set_target_properties(OverridenPlatformToolset
|
|
PROPERTIES VS_PLATFORM_TOOLSET MyCustomToolset)
|