From 8d5f4c4db93959f77dc8fb185e4630df4ec26d98 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 14 Sep 2020 15:02:47 -0400 Subject: Xcode: Switch to the "new build system" for Xcode 12 and above Provide an option to switch back to the original build system via `-T buildsystem=1`. Fixes: #18088 --- .../GeneratorToolset/TestToolsetXcodeBuildSystemDefault12.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Tests/RunCMake/GeneratorToolset/TestToolsetXcodeBuildSystemDefault12.cmake (limited to 'Tests/RunCMake/GeneratorToolset/TestToolsetXcodeBuildSystemDefault12.cmake') diff --git a/Tests/RunCMake/GeneratorToolset/TestToolsetXcodeBuildSystemDefault12.cmake b/Tests/RunCMake/GeneratorToolset/TestToolsetXcodeBuildSystemDefault12.cmake new file mode 100644 index 0000000000..645bb19a06 --- /dev/null +++ b/Tests/RunCMake/GeneratorToolset/TestToolsetXcodeBuildSystemDefault12.cmake @@ -0,0 +1,8 @@ +message(STATUS "CMAKE_XCODE_BUILD_SYSTEM='${CMAKE_XCODE_BUILD_SYSTEM}'") +if(CMAKE_GENERATOR_TOOLSET STREQUAL "Test Toolset") + message(FATAL_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() -- cgit v1.2.1