Skip to content

Commit

Permalink
fix cmake build with netcdf
Browse files Browse the repository at this point in the history
  • Loading branch information
hklion committed Mar 8, 2024
1 parent f5f7792 commit 32d6cbc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions CMake/BuildREMORAExe.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ function(build_remora_lib remora_lib_name)

if(REMORA_ENABLE_NETCDF)
target_sources(${remora_lib_name} PRIVATE
${SRC_DIR}/IO/NCIntremoraace.H
${SRC_DIR}/IO/NCWpsFile.H
${SRC_DIR}/IO/NCInterface.H
${SRC_DIR}/IO/NCPlotFile.H
${SRC_DIR}/IO/NCBuildFABs.cpp
${SRC_DIR}/IO/NCIntremoraace.cpp
${SRC_DIR}/IO/NCFile.H
${SRC_DIR}/IO/NCInterface.cpp
${SRC_DIR}/IO/NCPlotFile.cpp
${SRC_DIR}/IO/NCCheckpoint.cpp
${SRC_DIR}/IO/NCMultiFabFile.cpp)
${SRC_DIR}/IO/NCFile.cpp
${SRC_DIR}/IO/ReadFromInitNetcdf.cpp
${SRC_DIR}/IO/ReadFromBdryNetcdf.cpp
${SRC_DIR}/BoundaryConditions/BoundaryConditions_netcdf.cpp
${SRC_DIR}/Initialization/REMORA_init_from_netcdf.cpp)
target_compile_definitions(${remora_lib_name} PUBLIC REMORA_USE_NETCDF)
endif()

Expand Down

0 comments on commit 32d6cbc

Please sign in to comment.