2012-12-10 19:42:33 +04:00
|
|
|
include(RunCMake)
|
|
|
|
|
2013-02-06 01:10:36 +04:00
|
|
|
set(RunCMake_GENERATOR_TOOLSET "")
|
2012-12-10 19:42:33 +04:00
|
|
|
run_cmake(NoToolset)
|
|
|
|
|
2013-06-29 00:12:08 +04:00
|
|
|
if("${RunCMake_GENERATOR}" MATCHES "Visual Studio 1[012]|Xcode" AND NOT XCODE_BELOW_3)
|
2013-02-06 01:10:36 +04:00
|
|
|
set(RunCMake_GENERATOR_TOOLSET "Test Toolset")
|
2012-12-10 19:52:10 +04:00
|
|
|
run_cmake(TestToolset)
|
|
|
|
else()
|
2013-02-06 01:10:36 +04:00
|
|
|
set(RunCMake_GENERATOR_TOOLSET "Bad Toolset")
|
2012-12-10 19:52:10 +04:00
|
|
|
run_cmake(BadToolset)
|
|
|
|
endif()
|
2012-12-10 19:42:33 +04:00
|
|
|
|
2013-02-06 01:10:36 +04:00
|
|
|
set(RunCMake_GENERATOR_TOOLSET "")
|
|
|
|
set(RunCMake_TEST_OPTIONS -T "Extra Toolset")
|
2012-12-10 19:42:33 +04:00
|
|
|
run_cmake(TwoToolsets)
|
|
|
|
unset(RunCMake_TEST_OPTIONS)
|