summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-10 16:42:49 (GMT)
committerBrad King <brad.king@kitware.com>2015-04-10 16:42:49 (GMT)
commitc9e9c31c53f69475aa080ad442492408217259b5 (patch)
treeb50cb4e1fb033d17f3b6015f3f48da1e1cc7907d /Tests/RunCMake
parent1975d53ae19c46ee4f7384cc96be355f7e94df61 (diff)
downloadCMake-c9e9c31c53f69475aa080ad442492408217259b5.zip
CMake-c9e9c31c53f69475aa080ad442492408217259b5.tar.gz
CMake-c9e9c31c53f69475aa080ad442492408217259b5.tar.bz2
Tests: Create pseudo_emulator output dir for Xcode 2.x
Apply the workardound from commit v2.8.2~598 (Create CMakeLibTests output dir for Xcode, 2009-12-09) to the pseudo_emulator tool.
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index 977721d..0ffae0e 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -230,3 +230,11 @@ endif()
add_executable(pseudo_emulator pseudo_emulator.c)
add_RunCMake_test(CrosscompilingEmulator
-DPSEUDO_EMULATOR=$<TARGET_FILE:pseudo_emulator>)
+# Xcode 2.x forgets to create the output directory before linking
+# the individual architectures.
+if(CMAKE_OSX_ARCHITECTURES AND XCODE AND NOT "${XCODE_VERSION}" MATCHES "^[^12]")
+ add_custom_command(
+ TARGET pseudo_emulator
+ PRE_BUILD COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_CFG_INTDIR}"
+ )
+endif()