Files
CMake/Tests/RunCMake/VS10Project/VsPlatformToolset.cmake
Julien Jemine 197b4cbe18 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
2020-04-29 07:35:57 -04:00

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)