Skip to content

Commit

Permalink
PDAF: put PDAF-related commands under USE_PDAF condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jjokella committed Nov 29, 2024
1 parent 4b7bc96 commit ce0424b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pfsimulator/amps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ if(${PARFLOW_HAVE_OAS3})

target_link_libraries(amps ${NETCDF_Fortran_LIBRARY})
target_include_directories(amps PUBLIC "${NETCDF_Fortran_INCLUDES}")
list(APPEND HEADER_FILES oas3/oas3_coupler.h oas3/oas3_external.h)
if (USE_PDAF)
list(APPEND HEADER_FILES oas3/oas3_coupler.h oas3/oas3_external.h)
endif()
endif(${PARFLOW_HAVE_OAS3})

if (USE_PDAF)
Expand All @@ -57,9 +59,11 @@ set(AMPS_SCRIPTS run)
string(REGEX REPLACE "([^;]+)" "${PARFLOW_AMPS_LAYER}/\\1" AMPS_SCRIPTS "${AMPS_SCRIPTS}")
install(FILES ${AMPS_SCRIPTS} DESTINATION bin)

# Install headers
install(FILES ${HEADER_FILES}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/parflow)
if (USE_PDAF)
# Install headers
install(FILES ${HEADER_FILES}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/parflow)
endif()

add_subdirectory (test/src)

0 comments on commit ce0424b

Please sign in to comment.