summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GeneratorToolset/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-12-20 15:16:57 (GMT)
committerBrad King <brad.king@kitware.com>2013-02-07 16:07:48 (GMT)
commitf980a8049522782779b3a721c37f976de1e38dcc (patch)
treed694350146e9b498cac71a991eeb64d173fb597f /Tests/RunCMake/GeneratorToolset/RunCMakeTest.cmake
parent650c6471600fa8b06ed343ff3a4f3d16a3dc95bc (diff)
downloadCMake-f980a8049522782779b3a721c37f976de1e38dcc.zip
CMake-f980a8049522782779b3a721c37f976de1e38dcc.tar.gz
CMake-f980a8049522782779b3a721c37f976de1e38dcc.tar.bz2
Xcode: Implement generator toolset selection (#9831, #13802)
Implement generator toolset selection (cmake -T) for Xcode > 2.0 by adding the GCC_VERSION build setting to project files.
Diffstat (limited to 'Tests/RunCMake/GeneratorToolset/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/GeneratorToolset/RunCMakeTest.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/GeneratorToolset/RunCMakeTest.cmake b/Tests/RunCMake/GeneratorToolset/RunCMakeTest.cmake
index 49b63de..007280a 100644
--- a/Tests/RunCMake/GeneratorToolset/RunCMakeTest.cmake
+++ b/Tests/RunCMake/GeneratorToolset/RunCMakeTest.cmake
@@ -2,7 +2,7 @@ include(RunCMake)
run_cmake(NoToolset)
-if("${RunCMake_GENERATOR}" MATCHES "Visual Studio 1[01]")
+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)