mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03: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)
|