Skip to content

Buggy CMake config #175

@chrisosaurus

Description

@chrisosaurus

Running CMake once or twice with the COVERAGE option set produces different results

cmake -DCOVERAGE:BOOL=ON ./&& make && make tests && ctest
find . -iname '*gcno' | wc -l
find . -iname '*gcda' | wc -l
grep -Rni 'coverage' CMakeFiles/* | wc -l

outputs

1
0
2

whereas

cmake -DCOVERAGE:BOOL=ON && cmake -DCOVERAGE:BOOL=ON ./ && make && make tests && ctest
find . -iname '*gcno' | wc -l
find . -iname '*gcda' | wc -l
grep -Rni 'coverage' CMakeFiles/* | wc -l

outputs

172
54
3

For more context please see
eddyxu/cpp-coveralls#111 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions