Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: Clean up coverage flags #1557

Closed
wants to merge 2 commits into from

Conversation

hebasto
Copy link
Member

@hebasto hebasto commented Jun 28, 2024

The CMAKE_C_FLAGS_COVERAGE is a language-wide variable. These flags will be passed to all invocations of the compiler, including invocations that drive compiling and those that drive linking.

Therefore, --coverage in the CMAKE_*_LINKER_FLAGS_COVERAGE variables is redundant.

Also this PR allows the user to override CMAKE_C_FLAGS_COVERAGE by setting a cache variable in the command line.

The `CMAKE_C_FLAGS_COVERAGE` is language-wide variable. These flags will
be passed to all invocations of the compiler, including invocations that
drive compiling and those that drive linking.
Therefore, `--coverage` in the `CMAKE_*_LINKER_FLAGS_COVERAGE` variables
is redundant.
@hebasto hebasto marked this pull request as draft June 28, 2024 08:35
@hebasto hebasto closed this Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant