Lines Matching +full:cmake +full:- +full:args
1 # This file is based off of the Platform/Darwin.cmake and Platform/UnixPaths.cmake
2 # files which are included with CMake 2.8.4
9 # OS - the default, used to build for iPhone and iPad physical devices, which have an arm arch.
10 # SIMULATOR - used to build for the Simulator platforms, which have an x86 arch.
18 # In this case it will always be the most up-to-date SDK found in the CMAKE_IOS_DEVELOPER_ROOT pa…
29 # find_host_package (PROGRAM ARGS)
31 # Thanks to the android-cmake project for providing the command
46 # Required as of cmake 2.8.10
49 # Determine the cmake host system version so we know where to find the iOS SDKs
52 exec_program(uname ARGS -r OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_VERSION)
53 …string (REGEX REPLACE "^([0-9]+)\\.([0-9]+).*$" "\\1" DARWIN_MAJOR_VERSION "${CMAKE_HOST_SYSTEM_VE…
66 # All iOS/Darwin specific settings - some may be redundant
75 set(BITCODE_FLAGS "-fembed-bitcode")
77 set(BITCODE_FLAGS "-fembed-bitcode-marker")
80 set (CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ")
81 set (CMAKE_C_OSX_CURRENT_VERSION_FLAG "-current_version ")
87 set (CMAKE_CXX_FLAGS_INIT "-fvisibility=hidden -fvisibility-inlines-hidden ${BITCODE_FLAGS}")
89 set (CMAKE_C_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_C_LINK_FLAGS}")
90 set (CMAKE_CXX_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_CXX_LINK_FLAGS}")
93 set (CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-dynamiclib -headerpad_max_install_names")
94 set (CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -headerpad_max_install_names")
95 set (CMAKE_SHARED_MODULE_LOADER_C_FLAG "-Wl,-bundle_loader,")
96 set (CMAKE_SHARED_MODULE_LOADER_CXX_FLAG "-Wl,-bundle_loader,")
99 # hack: if a new cmake (which uses CMAKE_INSTALL_NAME_TOOL) runs on an old build tree
101 # and still cmake didn't fail in CMakeFindBinUtils.cmake (because it isn't rerun)
124 set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos")
129 set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos")
135 set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphonesimulator")
141 set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphonesimulator")
148 exec_program(/usr/bin/xcode-select ARGS -print-path OUTPUT_VARIABLE CMAKE_XCODE_DEVELOPER_DIR)