Skip to content

Add boolean Omega build-mode macros#449

Open
grnydawn wants to merge 1 commit into
E3SM-Project:developfrom
grnydawn:ykim/omega/buildmode
Open

Add boolean Omega build-mode macros#449
grnydawn wants to merge 1 commit into
E3SM-Project:developfrom
grnydawn:ykim/omega/buildmode

Conversation

@grnydawn

Copy link
Copy Markdown

Expose the Omega build mode to C/C++ as compile-time macros.

In addition to the numeric OMEGA_BUILD_MODE, define OMEGA_BUILD_MODE_STANDALONE and OMEGA_BUILD_MODE_E3SM_COUPLED so source can be conditionally compiled per build mode.

Document the new macros in the CMake build dev guide.

Checklist

  • Documentation:
  • Linting
  • Building
    • CMake build does not produce any new warnings from changes in this PR

Expose the Omega build mode to C/C++ as compile-time macros. In addition
to the numeric OMEGA_BUILD_MODE, define OMEGA_BUILD_MODE_STANDALONE and
OMEGA_BUILD_MODE_E3SM_COUPLED so source can be conditionally compiled per
build mode.

Document the new macros in the CMake build dev guide.
@grnydawn grnydawn requested a review from andrewdnolan June 29, 2026 20:33
@grnydawn grnydawn added the CMake CMake-related issues label Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CMake CMake-related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants