Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/extern
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-23 14:39:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-23 14:39:59 +0400
commit87681b46eafede158543233c92d5d32874014b77 (patch)
tree39faff5863cee77f850de23be912a83dad9bd462 /extern
parentd3f8952269ca00e1ea7aa9d82ccb157c9074522e (diff)
fix for cmake error on non osx systems
Diffstat (limited to 'extern')
-rw-r--r--extern/libmv/CMakeLists.txt10
-rwxr-xr-xextern/libmv/bundle.sh10
2 files changed, 12 insertions, 8 deletions
diff --git a/extern/libmv/CMakeLists.txt b/extern/libmv/CMakeLists.txt
index a3a210eb436..5239c7ff7ca 100644
--- a/extern/libmv/CMakeLists.txt
+++ b/extern/libmv/CMakeLists.txt
@@ -42,10 +42,12 @@ set(INC_SYS
# 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
- )
+if(APPLE)
+ 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()
endif()
# XXX - END
diff --git a/extern/libmv/bundle.sh b/extern/libmv/bundle.sh
index 2f9357a2fe1..a34e45a38b0 100755
--- a/extern/libmv/bundle.sh
+++ b/extern/libmv/bundle.sh
@@ -134,10 +134,12 @@ set(INC_SYS
# 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
- )
+if(APPLE)
+ 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()
endif()
# XXX - END