diff options
Diffstat (limited to 'Tests/BuildDepends')
-rw-r--r-- | Tests/BuildDepends/Project/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/BuildDepends/Project/CMakeLists.txt b/Tests/BuildDepends/Project/CMakeLists.txt index a8bb445..e9d1296 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 |