From f127a0cd6f998c6b7975cfbe13f5144957fdcf67 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 21 Mar 2012 12:15:02 +0000 Subject: modify osx CMake hack so the CMake files can be parsed more easily by naive my error checker. --- extern/libmv/CMakeLists.txt | 14 +++++++++++--- extern/libmv/bundle.sh | 14 +++++++++++--- 2 files changed, 22 insertions(+), 6 deletions(-) (limited to 'extern') diff --git a/extern/libmv/CMakeLists.txt b/extern/libmv/CMakeLists.txt index c16d842dd65..a3a210eb436 100644 --- a/extern/libmv/CMakeLists.txt +++ b/extern/libmv/CMakeLists.txt @@ -37,11 +37,19 @@ set(INC set(INC_SYS ${PNG_INCLUDE_DIR} ${ZLIB_INCLUDE_DIRS} - 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() ) + +# XXX - FIXME +# this is a momentary hack to find unwind.h in 10.6.sdk +if(${CMAKE_OSX_DEPLOYMENT_TARGET} STREQUAL "10.6") + list(APPEND INC_SYS + ${CMAKE_OSX_SYSROOT}/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin10/4.2.1/include + ) +endif() +# XXX - END + + set(SRC libmv-capi.cpp libmv/image/array_nd.cc diff --git a/extern/libmv/bundle.sh b/extern/libmv/bundle.sh index fbf4364f7fe..2f9357a2fe1 100755 --- a/extern/libmv/bundle.sh +++ b/extern/libmv/bundle.sh @@ -129,11 +129,19 @@ set(INC set(INC_SYS \${PNG_INCLUDE_DIR} \${ZLIB_INCLUDE_DIRS} - 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() ) + +# XXX - FIXME +# this is a momentary hack to find unwind.h in 10.6.sdk +if(\${CMAKE_OSX_DEPLOYMENT_TARGET} STREQUAL "10.6") + list(APPEND INC_SYS + \${CMAKE_OSX_SYSROOT}/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin10/4.2.1/include + ) +endif() +# XXX - END + + set(SRC libmv-capi.cpp ${sources} -- cgit v1.2.3