Re: [CMake] Adding compile and build type tests to CMake/CTest

2017-09-13 Thread Nagy-Egri Máté Ferenc via CMake
Indeed, such a feature would come in handy to test libraries for correctly failing on erronous user input. What amazes me even more is that noone has stepped up yet to create CBench. A utility executable for measuring compilation times and capture output of some (micro)benchmark instrumentation

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Nils Gladitz
On 13.09.2017 14:31, Alain Miniussi wrote: On 13/09/2017 12:49, Nils Gladitz wrote: [...] Do you have a minimal reproducible example for that behaviour? e.g. given: cmake_minimum_required(VERSION 2.8.0) project(Foo NONE) file(WRITE foo/CMakeLists.txt "add_executable()") a

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Alain Miniussi
On 13/09/2017 12:49, Nils Gladitz wrote: [...] Do you have a minimal reproducible example for that behaviour? e.g. given: cmake_minimum_required(VERSION 2.8.0) project(Foo NONE) file(WRITE foo/CMakeLists.txt "add_executable()") add_subdirectory(foo) I get: CMake Err

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Mateusz Loskot
On 13 September 2017 at 12:49, Nils Gladitz wrote: > On 13.09.2017 12:22, Alain Miniussi wrote: >> On 13/09/2017 11:16, Nils Gladitz wrote: >>> On 13.09.2017 10:52, Alain Miniussi wrote: Is there a way, when printing CMake error, to get the exact location of the CMakeLists.txt ? >>>

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Nils Gladitz
On 13.09.2017 12:22, Alain Miniussi wrote: On 13/09/2017 11:16, Nils Gladitz wrote: On 13.09.2017 10:52, Alain Miniussi wrote: Hi, Is there a way, when printing CMake error, to get the exact location of the CMakeLists.txt ? For example, right now, when I have: CMake Error at CMakeLists.t

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Alain Miniussi
On 13/09/2017 11:16, Nils Gladitz wrote: On 13.09.2017 10:52, Alain Miniussi wrote: Hi, Is there a way, when printing CMake error, to get the exact location of the CMakeLists.txt ? For example, right now, when I have: CMake Error at CMakeLists.txt:14 (add_executable): I need to scan all

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Nils Gladitz
On 13.09.2017 10:52, Alain Miniussi wrote: Hi, Is there a way, when printing CMake error, to get the exact location of the CMakeLists.txt ? For example, right now, when I have: CMake Error at CMakeLists.txt:14 (add_executable): I need to scan all my CMakeLists.txt (~200) to check which one

[CMake] CMakeLists.txt location

2017-09-13 Thread Alain Miniussi
Hi, Is there a way, when printing CMake error, to get the exact location of the CMakeLists.txt ? For example, right now, when I have: CMake Error at CMakeLists.txt:14 (add_executable): I need to scan all my CMakeLists.txt (~200) to check which one has add_executable at line 14. Thanks A

Re: [CMake] debugging CMAKE_PREFIX_PATH

2017-09-13 Thread Patrick Welche
I think I am confused by the following: 1) CMAKE_PREFIX_PATH; Problematic (scribus) CMakeLists.txt: set(CMAKE_PREFIX_PATH "${QT_PREFIX}/lib/cmake") CMakeCache.txt: //No help, variable specified on the command line. CMAKE_PREFIX_PATH:PATH=/usr/pkg/qt5 So the problem was that CMakeLis