From da6ffaeb70fd90e774ab13eb66d726f921b39bcd Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Sun, 12 Mar 2017 18:37:09 +0100 Subject: [PATCH] Fix iOS try_compile problems (Closes cristeab/ios-cmake#9) --- toolchain/iOS.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/toolchain/iOS.cmake b/toolchain/iOS.cmake index 57b82f9..1851932 100644 --- a/toolchain/iOS.cmake +++ b/toolchain/iOS.cmake @@ -82,6 +82,9 @@ set (CMAKE_SHARED_MODULE_LOADER_C_FLAG "-Wl,-bundle_loader,") set (CMAKE_SHARED_MODULE_LOADER_CXX_FLAG "-Wl,-bundle_loader,") set (CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".so" ".a") +set(CMAKE_MACOSX_BUNDLE ON) +set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED OFF) + # hack: if a new cmake (which uses CMAKE_INSTALL_NAME_TOOL) runs on an old build tree # (where install_name_tool was hardcoded) and where CMAKE_INSTALL_NAME_TOOL isn't in the cache # and still cmake didn't fail in CMakeFindBinUtils.cmake (because it isn't rerun)