Skip to content

Commit

Permalink
Merge branch 'bartgol/eamxx/fix-rrtmgp-test-with-shared-libs' (PR #6875)
Browse files Browse the repository at this point in the history
Fix issue in eamxx build system when we generate baselines using shared libs.
  • Loading branch information
bartgol authored Jan 8, 2025
2 parents 03ab204 + 7134698 commit 6e40aeb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions components/eamxx/src/physics/rrtmgp/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
if (SCREAM_ONLY_GENERATE_BASELINES)
# Build baseline code
add_executable(generate_baseline generate_baseline.cpp)
target_link_libraries(generate_baseline PUBLIC scream_rrtmgp rrtmgp_test_utils)

# Generate allsky baseline with the usual cmake custom command-target pair pattern
# Generate allsky baseline
# Note: these "baselines" are not to compare scream with a previous version, but
# rather to compare scream::rrtmgp with raw rrtmgp.
CreateUnitTestFromExec(
rrtmgp-allsky-baseline generate_baseline
CreateUnitTest (
rrtmgp-allsky-baseline generate_baseline.cpp
LIBS scream_rrtmgp rrtmgp_test_utils
LABELS baseline_gen rrtmgp
EXCLUDE_MAIN_CPP
EXE_ARGS "${SCREAM_DATA_DIR}/init/rrtmgp-allsky.nc ${SCREAM_BASELINES_DIR}/data/rrtmgp-allsky-baseline.nc"
)

Expand Down

0 comments on commit 6e40aeb

Please sign in to comment.