Skip to content

Change BUILD_TESTING to BUILD_CI_TESTING in CMake, to allow ufs-weather-model to use BUILD_TESTING#920

Closed
edwardhartnett wants to merge 2 commits into
NOAA-EMC:developfrom
edwardhartnett:ejh_cmake_ci
Closed

Change BUILD_TESTING to BUILD_CI_TESTING in CMake, to allow ufs-weather-model to use BUILD_TESTING#920
edwardhartnett wants to merge 2 commits into
NOAA-EMC:developfrom
edwardhartnett:ejh_cmake_ci

Conversation

@edwardhartnett
Copy link
Copy Markdown
Contributor

Description

BUILD_TESTING was used by @AlexanderRichert-NOAA to get the fv3atm special build working. It's necessary because fv3atm contains code that links to subcomponent code, and that doesn't build on its own.

But BUILD_TESTING is a standard CMake option that has other uses. So instead, we should use BUILD_CI_TESTING for our own home-rolled hackery to build fv3atm in the CI system.

Issue(s) addressed

Fixes #821

Testing

In CI

Dependencies

None.

@climbfuji
Copy link
Copy Markdown
Collaborator

It looks like this will close ufs-community/ufs-weather-model#2648 - thanks @DusanJovic-NOAA for the pointer.

jkbk2004 added a commit to scrasmussen/ufsatm that referenced this pull request Apr 22, 2025
jkbk2004 pushed a commit that referenced this pull request Apr 23, 2025
…D_CI_TESTING in CMake, to allow ufs-weather-model to use BUILD_TESTING #920 + Fix for JEDI cubed sphere grid #951 (#931)

* change cmake option BUILD_TESTING to BUILD_CI_TESTING

* fixed workflow

* Reorganize project structure to allow multiple dycores. Isolate FV3 dycore.

* Fix JEDI cubed sphere grid and issue with time unlimited

---------

Co-authored-by: Edward Hartnett <edward.hartnett@noaa.gov>
Co-authored-by: Dusan Jovic <dusan.jovic@noaa.gov>
@jkbk2004
Copy link
Copy Markdown
Collaborator

merged with #931

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.

Adding -DBUILD_TESTING=ON or adding "include(CTest)" to CMakeLists.txt in ufs-weather-model breaks the build

5 participants