OSX/libmv: restrict the unwind.h workaround to 10.6.sdk only

This commit is contained in:
Jens Verwiebe
2012-03-11 12:15:39 +00:00
parent 2382afa968
commit fa169fdcb6

View File

@@ -37,7 +37,7 @@ set(INC
set(INC_SYS
${PNG_INCLUDE_DIR}
${ZLIB_INCLUDE_DIRS}
if(APPLE) # this is a momentary hack to find unwind.h in 10.6.sdk
if(${CMAKE_OSX_DEPLOYMENT_TARGET} STREQUAL "10.6") # this is a momentary hack to find unwind.h in 10.6.sdk
${CMAKE_OSX_SYSROOT}/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin10/4.2.1/include
endif()
)