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 two issues with build_defines header #2130

Merged
merged 2 commits into from
Nov 10, 2020
Merged

Conversation

ZedThree
Copy link
Member

@ZedThree ZedThree commented Nov 2, 2020

  1. #cmakedefine expands to a comment if the variable is considered falsey, but we actually always want to define BOUT_CHECK_LEVEL, even if it's zero
  2. Make sure we remove the generated build_defines.hxx from the autoconf build on make distclean

If `CHECK` is set to 0, CMake considers this falsey so `#cmakedefine`
expands to `/* undef ... */`, but we always want this to be defined
@ZedThree ZedThree added bugfix small-change Changes less than 100 lines - should be quick to review labels Nov 2, 2020
@ZedThree ZedThree merged commit c31a0a2 into next Nov 10, 2020
@ZedThree ZedThree deleted the fix-build-define-header branch November 10, 2020 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix small-change Changes less than 100 lines - should be quick to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants