summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GeneratorToolset/RunCMakeTest.cmake
blob: 007280a87eae7c1f9bdb7489d63adcd5315a2449 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
include(RunCMake)

run_cmake(NoToolset)

if("${RunCMake_GENERATOR}" MATCHES "Visual Studio 1[01]|Xcode" AND NOT XCODE_BELOW_3)
  set(RunCMake_TEST_OPTIONS -T "Test Toolset")
  run_cmake(TestToolset)
  unset(RunCMake_TEST_OPTIONS)
else()
  set(RunCMake_TEST_OPTIONS -T "Bad Toolset")
  run_cmake(BadToolset)
  unset(RunCMake_TEST_OPTIONS)
endif()

set(RunCMake_TEST_OPTIONS -T "Toolset 1" "-TToolset 2")
run_cmake(TwoToolsets)
unset(RunCMake_TEST_OPTIONS)