[CMake] CTest: Cannot find any coverage files. Ignoring Coverage request.
hgc-01134@hkedcity.net wong
emeplease at gmail.com
Thu Aug 26 02:06:26 EDT 2010
Thank you David, my issue is solved.
It's because the SET( CMAKE_CXX_FLAGS ) inside CTest script has no effect ,
instead, I need to insert lines into
SET (CTEST_INITIAL_CACHE "
...
)
Also, I mistakenly override the CMAKE_CXX_FLAGS in the root CMakeList.txt
Regards,
Joseph
2010/8/25 emeplease <emeplease at gmail.com>:
>
>
> Hi, I am going to enable coverage test in my project,
>
> I have enabled the following compile options:
> -----------------------------------------------------------------------------------------------
> CXXFLAGS="-g -O0 -Wall -Wshadow \
> -Wunused-function -Wunused -Wno-system-headers \
> -Wno-deprecated -Woverloaded-virtual -Wwrite-strings -fprofile-arcs \
> -ftest-coverage" \
> CFLAGS="-g -O0 -Wall -W -fprofile-arcs -ftest-coverage" \
> LDFLAGS="-fprofile-arcs -ftest-coverage" \
> -----------------------------------------------------------------------------------------------
>
> Inside DartConfiguration.tcl :
> CoverageCommand: /usr/bin/gcov
>
> -----------------------------------------------------------------------------------------------
> Inside CMakeCache.txt :
> COVERAGE_COMMAND:FILEPATH=/usr/bin/gcov
>
> -----------------------------------------------------------------------------------------------
>
>
>
> However, I am not able to use coverage test:
>
> Performing coverage
> Cannot find any coverage files. Ignoring Coverage request.
>
>
>
> Thank you very much.
>
>
> Regards,
> Joseph
>
>
>
More information about the CMake
mailing list