summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-02-19 16:02:35 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2009-02-19 16:02:35 -0500
commite42cbc7a6431f437789cd955f39be6a48506610a (patch)
tree8ed44da0a39a76b178477bcbebd265c64076b894
parent8e30ac013acb94499790bfcb67b383a8fb574ccc (diff)
downloadcmake-e42cbc7a6431f437789cd955f39be6a48506610a.tar.gz
ENH: merge in fix for test on older macs
-rw-r--r--Tests/BuildDepends/Project/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/BuildDepends/Project/CMakeLists.txt b/Tests/BuildDepends/Project/CMakeLists.txt
index a8bb445d1e..e9d129682b 100644
--- a/Tests/BuildDepends/Project/CMakeLists.txt
+++ b/Tests/BuildDepends/Project/CMakeLists.txt
@@ -1,6 +1,12 @@
cmake_minimum_required(VERSION 2.6)
project(testRebuild)
-set(CMAKE_OSX_ARCHITECTURES "ppc;i386")
+if(APPLE)
+ # only use multi-arch if the sysroot exists on this machine
+ if(EXISTS "${CMAKE_OSX_SYSROOT}")
+ set(CMAKE_OSX_ARCHITECTURES "ppc;i386")
+ endif(EXISTS "${CMAKE_OSX_SYSROOT}")
+endif(APPLE)
+
add_library(foo STATIC ${testRebuild_BINARY_DIR}/foo.cxx)
set_target_properties(foo PROPERTIES OUTPUT_NAME "foolib")
# Add a generated header that regenerates when the generator is