diff options
author | Memphiz <memphis@machzwo.de> | 2015-09-14 19:16:04 +0200 |
---|---|---|
committer | Memphiz <memphis@machzwo.de> | 2015-09-15 11:51:25 +0200 |
commit | c25fca14b52870c987a54bd795f0b4661f71dd47 (patch) | |
tree | b9f4c3eca190ad3eeb04afc0129af800ee344fae | |
parent | a0775b0bc53b3a188122819793ebf0529ea15191 (diff) |
[osx/cmake-native] - give a hint about our used native SDK - cmake might pick a wrong/non existing sdk (f.e. when running on 10.10 and having xcode7 with SDK 10.11 - it picks 10.10 which is non existent) for some reason (and bails out because it doesn't find curl for example) - simply use the latest sdk given by xcrun for native tools
-rw-r--r-- | tools/depends/native/cmake-native/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/depends/native/cmake-native/Makefile b/tools/depends/native/cmake-native/Makefile index e4d3749135..c673f87312 100644 --- a/tools/depends/native/cmake-native/Makefile +++ b/tools/depends/native/cmake-native/Makefile @@ -11,6 +11,11 @@ ARCHIVE=$(SOURCE).tar.gz SETENV=CC=$(CC_FOR_BUILD) CXX=$(CXX_FOR_BUILD) LD=$(LD_FOR_BUILD) CFLAGS=$(NATIVE_CFLAGS) \ CXXFLAGS=$(NATIVE_CXXFLAGS) LDFLAGS=$(NATIVE_LDFLAGS) + +ifeq ($(NATIVE_OS), osx) + SETENV+=SDKROOT=$(shell xcrun --show-sdk-path) +endif + CONFIGURE=./bootstrap --prefix=$(NATIVEPREFIX) --system-curl APP=$(PLATFORM)/bin/$(APPNAME) |