Re: [CMake] Protobuf on iOS

2017-10-17 Thread Robert Bielik
Thanks Craig, For your thorough answer! > set(CMAKE_MACOSX_BUNDLE YES) I did set this so that the protoc app would get through compilation, but since the protobuf cmake/install.cmake file contains the following: install(TARGETS protoc ... RUNTIME DESTINATION ...) it chokes since BUNDLE DESTIN

Re: [CMake] Protobuf on iOS

2017-10-17 Thread Craig Scott
As a starting point, you can try this as your toolchain file rather than the one from polly if you want to pare things down to help investigate what's going on: set(CMAKE_MACOSX_BUNDLE YES) set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED NO) set(CMAKE_OSX_SYSROOT iphoneos) This should be the mini

[CMake] Protobuf on iOS

2017-10-17 Thread Robert Bielik
Hi all, CMake version: 3.9.4 Trying to build protobuf on iOS via the toolchains @ https://github.com/ruslo/polly (ios-10-2.cmake). With some additional tricks in my wrapper CMakeLists file: if (IOS) set(CMAKE_MACOSX_BUNDLE OFF) find_package(Threads REQUIRED) endif () add_subdirectory(