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: don't regenerate datamodel_{glue,includes}.h on each cmake run #634

Merged
merged 4 commits into from
May 1, 2023

Conversation

veprbl
Copy link
Member

@veprbl veprbl commented Apr 27, 2023

This avoids unnecessary rebuilds.

Briefly, what does this PR introduce?

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue #__)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

Does this PR change default behavior?

@c-dilks
Copy link
Member

c-dilks commented Apr 27, 2023

Does this resolve #578 (comment)?

@veprbl
Copy link
Member Author

veprbl commented Apr 27, 2023

Does this resolve #578 (comment)?

I've tried using forward declarations instead of datamodel_includes.h and it made a small dent in the times for compilation from scratch #628, which @nathanwbrei was talking about. This one should help with recompilation, in cases when you are calling cmake configuration on an existing build.

Copy link
Contributor

@wdconinc wdconinc left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@wdconinc wdconinc enabled auto-merge (squash) May 1, 2023 22:01
@wdconinc wdconinc merged commit 2c8d2db into main May 1, 2023
@wdconinc wdconinc deleted the pr/cmake_datamodel_no_rebuild branch May 1, 2023 22:26
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.

3 participants