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

View File

@ -150,6 +150,16 @@ if(WIN32 AND CMAKE_COMPILER_IS_GNU${CMAKE_PRIMARY_LANG})
unset(__GCC_TARGET_MACHINE)
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(CMAKE_COMPILER_IS_ELBRUSC OR CMAKE_SYSTEM_PROCESSOR MATCHES "e2k.*|E2K.*|elbrus.*|ELBRUS.*")
set(E2K TRUE)
set(CMAKE_SYSTEM_ARCH "Elbrus")