[CMake] Error from GenerateExportHeader.cmake (configure_file)

2017-03-03 Thread Miroslav Drahos
Hi, I am getting errors emanating from GenerateExportHeader.cmake and hope someone has any pointers on this. The error: CMake Error at /usr/share/cmake-3.5/Modules/GenerateExportHeader.cmake:362 (configure_file):   configure_file Problem configuring file Call Stack (most recent call first):  

[cmake-developers] patch for FindProtobuf.cmake

2016-06-22 Thread Miroslav Drahos
Folks, I believe I found a bug in FindProtobuf.cmake. Using set with two parameters will insert an unwanted semicolon, the list separator. The changes I made are like this (several occurrences): -set(_protobuf_include_path -I ${CMAKE_CURRENT_SOURCE_DIR}) +set(_protobuf_include_path

[CMake] detect Nightly test run

2016-06-08 Thread Miroslav Drahos
Hi folks, I am wondering if it is possible to detect in CMakeLists.txt whether a Nightly target is being configured? What I am trying to do, is to set extra parameters (--gtest_repeat=200) on some tests; but because this slows things down, I'd like to have this only in the Nightly run. Any

[CMake] passing toolchain file with ExternalProjects_Add

2016-03-09 Thread Miroslav Drahos
Hi folks, Trying to cross-compile, passing the toolchain as usual: cmake -DCMAKE_TOOLCHAIN_FILE=/path/to/Toolchain.cmake <...> And forwarding CMAKE_TOOLCHAIN_FILE variable down to my external projects, like so: ExternalProject_Add(${app} # ... CMAKE_CACHE_ARGS