mdbx-cmake: more for iOS.

Change-Id: Iebc6fafe23b3c39462bbf497e60148daffd519a9
This commit is contained in:
Leonid Yuriev
2020-04-08 22:02:17 +03:00
parent 99f07f5054
commit 19454f26e6
2 changed files with 20 additions and 0 deletions

View File

@@ -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."