Skip to content

Minor restructure of CMakeLists.txt - #746

Merged
Whyborn merged 1 commit into
mainfrom
minor-structure-of-CMake
Oct 1, 2026
Merged

Whyborn merged 1 commit into
mainfrom
minor-structure-of-CMake

Conversation

@Whyborn

@Whyborn Whyborn commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

CABLE

Thank you for submitting a pull request to the CABLE Project.

Description

Minor restructuring of CMakeLists.txt to make it more logical. The things that apply regardless of the library, which is the default config values, and the build flags are at the start. The branches for the library and non-library builds then encompass the rest of the build- when we build the library, we never want all the bells and whistles e.g. testing, NetCDF, PIO.

Type of change

  • Bug fix

Checklist

  • The new content is accessible and located in the appropriate section
  • I have checked that links are valid and point to the intended content
  • I have checked my code/text and corrected any misspellings

Testing

  • Are the changes bitwise-compatible with the main branch? If working on an optional feature, are the results bitwise-compatible when this feature is off? If yes, copy benchcab output showing successful completion of the bitwise compatibility tests or equivalent results below this line.

📚 Documentation preview 📚: https://cable--746.org.readthedocs.build/en/746/

@Whyborn
Whyborn requested a review from bschroeter October 1, 2026 02:46

@bschroeter bschroeter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Whyborn
Whyborn merged commit 520274f into main Oct 1, 2026
12 checks passed
@Whyborn
Whyborn deleted the minor-structure-of-CMake branch October 1, 2026 03:55
Whyborn added a commit that referenced this pull request Oct 1, 2026
Thank you for submitting a pull request to the CABLE Project.

Minor restructuring of `CMakeLists.txt` to make it more logical. The
things that apply regardless of the library, which is the default config
values, and the build flags are at the start. The branches for the
library and non-library builds then encompass the rest of the build-
when we build the library, we never want all the bells and whistles e.g.
testing, NetCDF, PIO.

- [x] Bug fix

- [x] The new content is accessible and located in the appropriate
section
- [x] I have checked that links are valid and point to the intended
content
- [x] I have checked my code/text and corrected any misspellings

- [x] Are the changes bitwise-compatible with the main branch? If
working on an optional feature, are the results bitwise-compatible when
this feature is off? If yes, copy benchcab output showing successful
completion of the bitwise compatibility tests or equivalent results
below this line.

<!-- readthedocs-preview cable start -->
----
📚 Documentation preview 📚:
https://cable--746.org.readthedocs.build/en/746/

<!-- readthedocs-preview cable end -->
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.

2 participants