Skip to content

Commit

Permalink
PDAF: Add USE_PDAF via target_compile_definitions
Browse files Browse the repository at this point in the history
- to `amps`, `pfsimulator`, where it is used in code
  • Loading branch information
jjokella committed Nov 29, 2024
1 parent 0e8e758 commit a5d0c88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pfsimulator/amps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set(COMMON_SRC_FILES amps_abort.c amps_clear.c amps_clock.c
amps_sfbcast.c amps_sfclose.c amps_sfopen.c amps_wait.c signal.c amps_print.c)

if (USE_PDAF)
target_compile_definitions(amps PUBLIC USE_PDAF)
list(APPEND HEADER_FILES common/amps_common.h
${PARFLOW_AMPS_LAYER}/amps.h
${PARFLOW_AMPS_LAYER}/amps_proto.h)
Expand Down
2 changes: 2 additions & 0 deletions pfsimulator/parflow_lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ if (${PARFLOW_HAVE_NETCDF})
endif (${PARFLOW_HAVE_NETCDF})

if (USE_PDAF)
target_compile_definitions(pfsimulator PUBLIC USE_PDAF)

# Install headers
set (HEADER_FILES
backend_mapping.h
Expand Down

0 comments on commit a5d0c88

Please sign in to comment.