summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-02-24 14:39:13 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-02-24 14:39:13 (GMT)
commit8f8418c68b92a05f0d030e36dd714dabc218b6b8 (patch)
treea04c15b9ce1ec393bceea79e950c20d26dbf47a0 /Tests
parent6f00fc58ed7f7cb3775bf77192ecde154884aa30 (diff)
parentd8cba5368bd58c6113abd8617fe264579e97b48a (diff)
downloadCMake-8f8418c68b92a05f0d030e36dd714dabc218b6b8.zip
CMake-8f8418c68b92a05f0d030e36dd714dabc218b6b8.tar.gz
CMake-8f8418c68b92a05f0d030e36dd714dabc218b6b8.tar.bz2
Merge topic 'test-XCTest-sdkroot'
d8cba536 Tests: Fix XCTest when ENV{SDKROOT} is set
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 7bb0721..b43275a 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -1644,7 +1644,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release
if(CMake_TEST_XCODE_VERSION AND NOT CMake_TEST_XCODE_VERSION VERSION_LESS 5
AND OSX_VERSION MATCHES "^([0-9]+\\.[0-9]+)")
- set(XCTest_BUILD_OPTIONS -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_MATCH_1})
+ set(XCTest_BUILD_OPTIONS -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_MATCH_1} -DCMAKE_OSX_SYSROOT=macosx)
ADD_TEST_MACRO(XCTest ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION> -V)
endif()