mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
97507e42a1
- 3rdparty/libjasper/jas_getopt.c:129:25: warning: this function declaration is not a prototype [-Wstrict-prototypes] - clang: warning: optimization flag '-fomit-frame-pointer' is not supported for target 'armv7' [-Wignored-optimization-argument] - clang: warning: optimization flag '-fomit-frame-pointer' is not supported for target 'armv7s' [-Wignored-optimization-argument] - backport IOS_ARCH toolchain option and setup CMAKE_SYSTEM_PROCESSOR: - adds '-mfpu=neon' compiler flag for ARM, SSE flags for i386/x86_64 - fixed proper libpng compilation (no ARM asm)
35 lines
1.1 KiB
CMake
35 lines
1.1 KiB
CMake
message (STATUS "Setting up iPhoneOS toolchain")
|
|
set (IPHONEOS TRUE)
|
|
|
|
# Standard settings
|
|
set(CMAKE_SYSTEM_NAME iOS)
|
|
set(CMAKE_SYSTEM_VERSION 6.0)
|
|
set(CMAKE_SYSTEM_PROCESSOR "${IOS_ARCH}")
|
|
|
|
# Include extra modules for the iOS platform files
|
|
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/platforms/ios/cmake/Modules")
|
|
|
|
# Force the compilers to clang for iOS
|
|
include (CMakeForceCompiler)
|
|
#CMAKE_FORCE_C_COMPILER (clang GNU)
|
|
#CMAKE_FORCE_CXX_COMPILER (clang++ GNU)
|
|
|
|
set (CMAKE_C_SIZEOF_DATA_PTR 4)
|
|
set (CMAKE_C_HAS_ISYSROOT 1)
|
|
set (CMAKE_C_COMPILER_ABI ELF)
|
|
set (CMAKE_CXX_SIZEOF_DATA_PTR 4)
|
|
set (CMAKE_CXX_HAS_ISYSROOT 1)
|
|
set (CMAKE_CXX_COMPILER_ABI ELF)
|
|
|
|
# Skip the platform compiler checks for cross compiling
|
|
set (CMAKE_CXX_COMPILER_WORKS TRUE)
|
|
set (CMAKE_C_COMPILER_WORKS TRUE)
|
|
|
|
# Search for programs in the build host directories
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
|
|
# for libraries and headers in the target directories
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
|
|
message (STATUS "iPhoneOS toolchain loaded")
|