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

Fix precompiled headers with C files #955

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

msimberg
Copy link
Collaborator

Works around #950 with https://stackoverflow.com/questions/68735830/cmake-precompiled-headers-issue-with-mixed-c-c-project. Note that it's not enough to have a C header in the list of precompiled headers. The executable/library also has to have at least one C file for the .h precompiled header to be generated. In C-mode -Wpedantic also warns about an empty translation unit so I've added a dummy function declaration to the dummy.c file as well.

@msimberg msimberg self-assigned this Aug 14, 2023
Copy link
Member

@RMeli RMeli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, LGTM. Thanks @msimberg for fixing this.

@rasolca rasolca merged commit af3a430 into eth-cscs:master Aug 21, 2023
3 checks passed
github-actions bot pushed a commit that referenced this pull request Aug 21, 2023
@msimberg msimberg deleted the fix-precompiled-headers-c-files branch August 22, 2023 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants