Re: [CMake] Problem measuring coverage in CTest scripts

2017-10-28 Thread Anonymous Maarten
I've searched in the history of the mailing list and I think it's the same problem as this one: https://public.kitware.com/pipermail/cmake/2017-September/066176.html I cannot use the Ninja generator in my script. When I change the generator to 'Unix Makefiles', the coverage works. Thanks for resp

Re: [CMake] Problem measuring coverage in CTest scripts

2017-10-28 Thread Clément Gregoire
No since the point of cmake scripts is to build the project (for CI basically). I'm not sure what happens but I remember people having issues when using ninja? I'm not sure. You can have a look at https://github.com/Lectem/cpp-boilerplate I use a Ctest script for my Travis coverage build. The sc

Re: [CMake] Problem measuring coverage in CTest scripts

2017-10-27 Thread Edoardo Pasca
Afaik, Ctest should be run in the build directory. From your command it seems you run it in the source. I'm not surprised it doesn't work. Edo On Oct 28, 2017 6:59 AM, "Maarten Anonymous" wrote: > Hey, > > I have a question about using CMake+CTest+CTest scripts for coverage tests. > > If I manu

[CMake] Problem measuring coverage in CTest scripts

2017-10-27 Thread Maarten Anonymous
Hey, I have a question about using CMake+CTest+CTest scripts for coverage tests. If I manually build the project and run "make ExperimantalCoverage" in a build folder, the coverage succeeds. If I run the coverage from within a CTest script, it fails. Am I forgetting something? A minimum example