summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GeneratorToolset/TestToolsetToolchain.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-05 15:31:00 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-06-05 15:31:00 (GMT)
commit88818b680549651b6531a6648396d749b759afb2 (patch)
treed647c967a515bf2601e13dafedc8ddf67b4e0c03 /Tests/RunCMake/GeneratorToolset/TestToolsetToolchain.cmake
parent64f399322051c16ea1a81cde19d5eec0fb846ca9 (diff)
parent528e8af19f68c01c3a42af9e74801a39c16237dd (diff)
downloadCMake-88818b680549651b6531a6648396d749b759afb2.zip
CMake-88818b680549651b6531a6648396d749b759afb2.tar.gz
CMake-88818b680549651b6531a6648396d749b759afb2.tar.bz2
Merge topic 'delay-generator-toolset'
528e8af1 Allow a toolchain file to specify a generator toolset 98afb454 VS: Split user- and generator-provided PlatformToolset 3e9f6e36 Xcode: Rename internal variable {Platform => Generator}Toolset
Diffstat (limited to 'Tests/RunCMake/GeneratorToolset/TestToolsetToolchain.cmake')
-rw-r--r--Tests/RunCMake/GeneratorToolset/TestToolsetToolchain.cmake25
1 files changed, 25 insertions, 0 deletions
diff --git a/Tests/RunCMake/GeneratorToolset/TestToolsetToolchain.cmake b/Tests/RunCMake/GeneratorToolset/TestToolsetToolchain.cmake
new file mode 100644
index 0000000..7c1c415
--- /dev/null
+++ b/Tests/RunCMake/GeneratorToolset/TestToolsetToolchain.cmake
@@ -0,0 +1,25 @@
+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()