ENH: make sure multiple archs are only tested when the work
This commit is contained in:
parent
756cb547f3
commit
819a4f2e57
@ -1,6 +1,12 @@
|
|||||||
cmake_minimum_required(VERSION 2.6)
|
cmake_minimum_required(VERSION 2.6)
|
||||||
project(testRebuild)
|
project(testRebuild)
|
||||||
|
if(APPLE)
|
||||||
|
# only use multi-arch if the sysroot exists on this machine
|
||||||
|
if(EXISTS "${CMAKE_OSX_SYSROOT}")
|
||||||
set(CMAKE_OSX_ARCHITECTURES "ppc;i386")
|
set(CMAKE_OSX_ARCHITECTURES "ppc;i386")
|
||||||
|
endif(EXISTS "${CMAKE_OSX_SYSROOT}")
|
||||||
|
endif(APPLE)
|
||||||
|
|
||||||
add_library(foo STATIC ${testRebuild_BINARY_DIR}/foo.cxx)
|
add_library(foo STATIC ${testRebuild_BINARY_DIR}/foo.cxx)
|
||||||
set_target_properties(foo PROPERTIES OUTPUT_NAME "foolib")
|
set_target_properties(foo PROPERTIES OUTPUT_NAME "foolib")
|
||||||
# Add a generated header that regenerates when the generator is
|
# Add a generated header that regenerates when the generator is
|
||||||
|
Loading…
x
Reference in New Issue
Block a user