Skip to content

Commit

Permalink
cmake(test): fix forcings engine compile def for test_all target
Browse files Browse the repository at this point in the history
  • Loading branch information
program-- authored and hellkite500 committed Aug 16, 2024
1 parent ad667f1 commit 2ffedf8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,10 @@ if(TARGET test_forcings_engine)
"${CMAKE_CURRENT_LIST_DIR}/../data/forcing/forcings-engine/config_aorc.yml.in" # Input
"${CMAKE_CURRENT_BINARY_DIR}/config_aorc.yml"
)
target_compile_definitions(test_forcings_engine
PUBLIC
-DNGEN_LUMPED_CONFIG_PATH="${CMAKE_CURRENT_BINARY_DIR}/config_aorc.yml")

# Use global add instead of target add so that both `test_forcings_engine` and `test_all`
# receive this compile definition.
add_compile_definitions(NGEN_LUMPED_CONFIG_PATH="${CMAKE_CURRENT_BINARY_DIR}/config_aorc.yml")
endif()

########################## Series Unit Tests
Expand Down

0 comments on commit 2ffedf8

Please sign in to comment.