Fix build iOS: when using Toolchain or building with Makefiles (not Xcode)
This commit is contained in:
parent
415925b024
commit
6774f77779
@ -73,13 +73,13 @@ ELSEIF(APPLE)
|
|||||||
SET (IPHONE_ENABLE_BITCODE "NO" CACHE STRING "IOS Enable Bitcode")
|
SET (IPHONE_ENABLE_BITCODE "NO" CACHE STRING "IOS Enable Bitcode")
|
||||||
|
|
||||||
# seamless toggle between device and simulator
|
# seamless toggle between device and simulator
|
||||||
SET(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos;-iphonesimulator")
|
SET(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos;-iphonesimulator" CACHE STRING "Xcode effective platforms for iOS")
|
||||||
|
|
||||||
# set deployment target to min version
|
# set deployment target to min version
|
||||||
SET(CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET "${IPHONE_VERSION_MIN}" CACHE STRING "Deployment target for iOS" FORCE)
|
SET(CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET "${IPHONE_VERSION_MIN}" CACHE STRING "Xcode deployment target for iOS")
|
||||||
|
|
||||||
# Set standard architectures
|
# Set standard architectures
|
||||||
SET(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)")
|
SET(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)" CACHE STRING "Build architectures for iOS")
|
||||||
|
|
||||||
ELSE()
|
ELSE()
|
||||||
# OSX >= 10.5 uses Cocoa windowing system, otherwise Carbon
|
# OSX >= 10.5 uses Cocoa windowing system, otherwise Carbon
|
||||||
|
Loading…
Reference in New Issue
Block a user