mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 04:10:05 -06:00
The names and formats of our VS flag tables are internal implementation details. However, some institutions need to maintain support for non-public VS platforms and toolsets. Provide a hook that their projects can use to load custom flag table files. This helps avoid distributing a custom CMake package within such institutions. Document the hook itself, but explicitly specify that the files the hook loads are not considered a stable interface.
7 lines
326 B
CMake
7 lines
326 B
CMake
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/defaults.cmake" "# VS Defaults
|
|
set(VsNormal_Platform [[${CMAKE_VS_PLATFORM_NAME}]])
|
|
set(VsNormal_Toolset [[${CMAKE_VS_PLATFORM_TOOLSET}]])
|
|
")
|
|
message(STATUS "CMAKE_VS_PLATFORM_NAME='${CMAKE_VS_PLATFORM_NAME}'")
|
|
message(STATUS "CMAKE_VS_PLATFORM_TOOLSET='${CMAKE_VS_PLATFORM_TOOLSET}'")
|