mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-25 21:54:28 +08:00
mdbx-cmake: more for iOS.
Change-Id: Iebc6fafe23b3c39462bbf497e60148daffd519a9
This commit is contained in:
@@ -72,6 +72,16 @@ else()
|
||||
project(libmdbx C CXX)
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED IOS)
|
||||
if(APPLE AND (CMAKE_SYSTEM_NAME STREQUAL "iOS"
|
||||
OR DEFINED CMAKE_IOS_DEVELOPER_ROOT
|
||||
OR DEFINED IOS_PLATFORM OR DEFINED IOS_ARCH))
|
||||
set(IOS TRUE)
|
||||
else()
|
||||
set(IOS FALSE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE MinSizeRel CACHE STRING
|
||||
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel."
|
||||
|
Reference in New Issue
Block a user