aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramet <amet.nospam@gmail.com>2013-10-12 22:41:32 +0400
committeramet <amet.nospam@gmail.com>2013-10-16 21:47:53 +0400
commit3c4fa6590d2593f912c1382299e715f8ac38f0c9 (patch)
treed850a66da1e3d7d1b75f25809dc015b61f103c2e
parentee9b6e80bda77c3d359416093d729233cb41429f (diff)
[xcode5] cmake fix build
-rw-r--r--tools/depends/native/cmake-native/Makefile2
-rw-r--r--tools/depends/target/Toolchain.cmake.in3
2 files changed, 4 insertions, 1 deletions
diff --git a/tools/depends/native/cmake-native/Makefile b/tools/depends/native/cmake-native/Makefile
index 8c46e9888e..c925958a7e 100644
--- a/tools/depends/native/cmake-native/Makefile
+++ b/tools/depends/native/cmake-native/Makefile
@@ -3,7 +3,7 @@ PLATFORM=$(NATIVEPLATFORM)
DEPS= ../../Makefile.include.in Makefile
APPNAME=cmake
-VERSION=2.8.8
+VERSION=2.8.12
SOURCE=$(APPNAME)-$(VERSION)
ARCHIVE=$(SOURCE).tar.gz
diff --git a/tools/depends/target/Toolchain.cmake.in b/tools/depends/target/Toolchain.cmake.in
index 156b501e88..d260dd82ed 100644
--- a/tools/depends/target/Toolchain.cmake.in
+++ b/tools/depends/target/Toolchain.cmake.in
@@ -2,6 +2,9 @@ SET(OS "@platform_os@")
IF("${OS}" STREQUAL "linux" OR "${OS}" STREQUAL "android")
SET(CMAKE_SYSTEM_NAME Linux)
ENDIF()
+IF("${OS}" STREQUAL "ios" OR "${OS}" STREQUAL "osx")
+SET(CMAKE_OSX_SYSROOT @use_sdk_path@)
+ENDIF()
SET(CMAKE_SYSTEM_VERSION 1)
# specify the cross compiler