[CMake] How to debug a CMake script?

2012-04-15 Thread Christoph Grüninger
Hi CMake, how do you debug CMake scripts? I know -Wdev, --debug-output, and --trace but often they are not sufficient. If I am interested in the value of a variable or want to check why a test fails I have no clue what to do. Currently, I work with printf debugging, a technique from the middle age

[CMake] CMake 3.7: Test #379: RunCMake.CPack_RPM fails

2016-11-12 Thread Christoph Grüninger
Dear CMake folks, I am trying to package CMake for openSuse. I was a bit surprised that the new dependency libuv was nowhere mentioned. Can it be disabled by a configure switch for older systems? CMake 3.7 compiles so far, but test #379 (RunCMake.CPack_RPM) fails, see the error below from OBS. I h

Re: [CMake] CMake 3.7: Test #379: RunCMake.CPack_RPM fails

2016-11-15 Thread Christoph Grüninger
Hi Domen, thanks for your answer. > > CMake 3.7 compiles so far, but test #379 (RunCMake.CPack_RPM) fails, see > > the error below from OBS. I had a brief look at our patches and I am apt > > to think they are unrelated. > > Can someone have a look and give some hint? > > > I'll test it today in

[CMake] Compiling CMake without libuv?

2016-11-15 Thread Christoph Grüninger
Dear CMake folks, I am trying to package CMake for openSuse. I was a bit surprised that the new dependency libuv was nowhere mentioned. Can it be disabled by a configure switch for older systems? Currently it errors out when libuv is not found. It should be only necessary for cmake-server, right?

Re: [CMake] Compiling CMake without libuv?

2016-11-16 Thread Christoph Grüninger
Hi Brad, thanks for the answer, I wasn't aware that I can pass CMake options to the bootstrap script. > There is also the CMAKE_USE_LIBUV option that can be set to OFF. > One can pass it to the bootstrap script via > > ../cmake/bootstrap ... -- -DCMAKE_USE_LIBUV=OFF > Works, that will ensure

[CMake] Warning when find_package does not find package

2014-05-09 Thread Christoph Grüninger
Hi CMake fellows, I have two pieces of software. Software A is an optional dependency of B. Following the way CMake intends, A provides a a-config.cmake. B does not have a FindB.cmake because A provides the config file [1]. B has a UseB.cmake which calls find_package(A). This works well in the case

Re: [CMake] Warning when find_package does not find package

2014-05-09 Thread Christoph Grüninger
Hi Nils, thanks for your answer. Your proposal is a valid work-around, but the summary entry would remain missing. In general I am more interested in directly fixing the problem in CMake. Bye Christoph Am 09.05.2014 12:25, schrieb Nils Gladitz: > On 05/09/2014 12:05 PM, Christoph Grüninger wr

Re: [CMake] Warning when find_package does not find package

2014-05-25 Thread Christoph Grüninger
Hi CMake developers, I further investigated my problem that I get a warning message from find_package which could not find the config file of an optional package, even when called with NO_MODULE. In cmFindPackageCommand.cxx, lines 811 - 822 the error messages are printed out as AUTHOR_WARNINGs

[CMake] CTest errors out when skipping a test

2014-12-02 Thread Christoph Grüninger
Hi CMake, I am testing the SKIP_RETURN_CODE property for tests. Unfortunately ctest error out when it found skipped tests. I expect ctest to not fail, because skipped tests should be indicated, but are to some extend expected and should still leave ctest passing. Is this a bug? Or do I misundersta

[CMake] Check whether C++ headers are self-sufficient

2015-03-14 Thread Christoph Grüninger
Dear CMakers, I want to have all my C++ headers self-sufficient (self-contained), i.e., a header can be included without additional includes. This is not only handy but also part of Google's C++ styleguide [2]. It would be great to have a make target (let's call it headercheck), that can check for

Re: [CMake] Check whether C++ headers are self-sufficient

2015-03-16 Thread Christoph Grüninger
Hi Andreas, > Why do you want to use one library per header? I think, it would be > sufficient to have one cc-file per header and one library per folder. Then I can test also for single headers. > Why do you worry about large build directories? Because for slow file systems like Windows it take

[CMake] Tests 115, 116, 117 and, 118 fail

2015-07-25 Thread Christoph Grüninger
Dear CMake, I am trying to create a CMake 3.3.0 RPM for openSuse using their Open Build Service. It compiles but the tests 115, 116, 117 and, 118 fail. The RPM build causes the error but I don't get what I should change. I attached the output. Bye Christoph -- I'm OK. The world's all wrong.

[CMake] Skip(ped) test with CTest?

2012-06-08 Thread Christoph Grüninger
Hi CMake, can I skip a test with CTest? Currently I do not add a test which is dependent on a not found feature, like: if(feature_found) add_test(..) endif(feature_found) If all tests pass, I still don't know whether everything is fine, because the not added tests are not shown. Has CMake

Re: [CMake] Skip(ped) test with CTest?

2012-06-08 Thread Christoph Grüninger
Hi David, thanks for your answer and the bug tracker link. I don't have any new arguments besides that the arguments and use cases stated in the bug tracker apply to our use case, too. I see it like a poor man's code coverage. Once I forgot to enable MPI support in autotools and it reported 4

Re: [CMake] Skip(ped) test with CTest?

2012-06-12 Thread Christoph Grüninger
Hi David, thanks for your idea with REQUIRED_FILES. I don't like the way, but we'll evaluate if it is enough for our project. Maybe a proper solution will be included in a future release of CMake. Bye Christoph There is a test property called REQUIRED_FILES, which is a list of files that mus

[CMake] How to share CMakeCache between projects?

2013-05-24 Thread Christoph Grüninger
Hi CMake, in our code we have different related CMake projects but CMake does not really know about dependencies between the projects. It would be handy to have only one CMakeCache.txt for all projects to reduce multiple execution of the Find*.cmake tests. Is there a possibility to define the p

[CMake] PIE-pie_off and CMP0083-cmp0083_new fail for openSuse Leap 15.0

2019-03-19 Thread Christoph Grüninger
Dear CMake, while trying to update the RPMs for openSuse with the Open Build service, I stumbled upon a strange problem. Following the same spec file for all target plattforms, CMake is first built and then the tests are executed. The tests pass for different types of openSuse versions (Factory, Tu

Re: [CMake] PIE-pie_off and CMP0083-cmp0083_new fail for openSuse Leap 15.0

2019-03-20 Thread Christoph Grüninger
Hi Alan, thanks for you answer. Do you know how the open build service works? It sets up a fresh installation for each (openSuse) platform. Then CMake's sources are deflated, configure is called and the package is build, installed, tested and then packaged. So no other CMake version is involved bes

Re: [CMake] PIE-pie_off and CMP0083-cmp0083_new fail for openSuse Leap 15.0

2019-03-20 Thread Christoph Grüninger
Hi Marc, thank you for having a look. openSuse confirmed it is a bug, cf. https://bugzilla.suse.com/show_bug.cgi?id=1096008 Sorry for the noise. Good to know, that packaging CMake reveal bugs. Bye Christoph Am 20.03.19 um 12:27 schrieb Marc CHEVRIER: > clearly, from what shown on http://paste.op