You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
995 B
26 lines
995 B
10 years ago
|
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()
|