[CMake] Windows crash dialog for tests

2017-10-17 Thread Dzenan Zukic
Hi everybody, I am trying to debug a thread pool class in ITK. Some of the tests crash "at random". When a program crashes in Windows, normally a dialog pops up with options "report, debug, close". When a test crashes while being invoked by cmake, ther

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(

[CMake] check_cxx_symbol_exists for std::literals works in one project, not in another

2017-10-17 Thread Martijn Otto via CMake
Hi, I'm struggling to understand the following behaviour. I need to test whether std::literals is available in my project, for which I have the following test: SET(CMAKE_REQUIRED_FLAGS "-std=c++14") check_cxx_symbol_exists("std::literals::string_literals::operator\"\"s( const char*, std::size_t)"