https://github.com/Kitware/CMake
Tip revision: fab7fe7ef5a5462952297611c1dd668a603e3a36 authored by Brad King on 17 March 2021, 14:16:33 UTC
CMake 3.20.0-rc5
CMake 3.20.0-rc5
Tip revision: fab7fe7
TestToolsetToolchain.cmake
if("x${CMAKE_GENERATOR_TOOLSET}" STREQUAL "xTest Toolset")
message(SEND_ERROR "CMAKE_GENERATOR_TOOLSET is \"Test Toolset\" as expected.")
else()
message(FATAL_ERROR
"CMAKE_GENERATOR_TOOLSET is \"${CMAKE_GENERATOR_TOOLSET}\" "
"but should be \"Test Toolset\"!")
endif()
if(CMAKE_GENERATOR MATCHES "Visual Studio")
if("x${CMAKE_VS_PLATFORM_TOOLSET}" STREQUAL "xTest Toolset")
message(SEND_ERROR "CMAKE_VS_PLATFORM_TOOLSET is \"Test Toolset\" as expected.")
else()
message(FATAL_ERROR
"CMAKE_VS_PLATFORM_TOOLSET is \"${CMAKE_VS_PLATFORM_TOOLSET}\" "
"but should be \"Test Toolset\"!")
endif()
endif()
if(CMAKE_GENERATOR MATCHES "Xcode")
if("x${CMAKE_XCODE_PLATFORM_TOOLSET}" STREQUAL "xTest Toolset")
message(SEND_ERROR "CMAKE_XCODE_PLATFORM_TOOLSET is \"Test Toolset\" as expected.")
else()
message(FATAL_ERROR
"CMAKE_XCODE_PLATFORM_TOOLSET is \"${CMAKE_XCODE_PLATFORM_TOOLSET}\" "
"but should be \"Test Toolset\"!")
endif()
endif()