mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 03:34:13 +08:00
mdbx-cmake: more for iOS.
Change-Id: Iebc6fafe23b3c39462bbf497e60148daffd519a9
This commit is contained in:
parent
99f07f5054
commit
19454f26e6
@ -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."
|
||||
|
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user