Skip to content

Commit

Permalink
Merge branch 'develop' into bugfix/gi
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGayno-NOAA committed Mar 11, 2024
2 parents 5a92fdb + 5e39d0a commit 5f15470
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 6 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ find_package(w3emc 2.9.0 REQUIRED)
find_package(bacio 2.4.0 REQUIRED)
find_package(nemsio 2.5.0 REQUIRED)
find_package(sigio 2.3.0 REQUIRED)
find_package(sp 2.3.3 REQUIRED)
find_package(ip 3.3.3 REQUIRED)
if(ip_VERSION LESS 5.0)
find_package(sp 2.3.3 REQUIRED)
endif()
find_package(g2 3.4.3 REQUIRED)
find_package(sigio 2.3.0 REQUIRED)

Expand Down
5 changes: 4 additions & 1 deletion sorc/chgres_cube.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,16 @@ target_link_libraries(
sigio::sigio
bacio::bacio_4
ip::ip_d
sp::sp_d
w3emc::w3emc_d
esmf
msis2
MPI::MPI_Fortran
NetCDF::NetCDF_Fortran)

if(sp_FOUND)
target_link_libraries(chgres_cube_lib PUBLIC sp::sp_d)
endif()

if(OpenMP_Fortran_FOUND)
target_link_libraries(${exe_name} PUBLIC OpenMP::OpenMP_Fortran)
endif()
Expand Down
5 changes: 4 additions & 1 deletion sorc/emcsfc_snow2mdl.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ target_link_libraries(snow2mdl_lib
PUBLIC
g2::g2_d
ip::ip_d
sp::sp_d
bacio::bacio_4
w3emc::w3emc_d)

if(sp_FOUND)
target_link_libraries(snow2mdl_lib PUBLIC sp::sp_d)
endif()

if(OpenMP_Fortran_FOUND)
target_link_libraries(${exe_name} PUBLIC OpenMP::OpenMP_Fortran)
endif()
Expand Down
5 changes: 4 additions & 1 deletion sorc/global_cycle.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ target_link_libraries(
w3emc::w3emc_d
bacio::bacio_4
ip::ip_d
sp::sp_d
MPI::MPI_Fortran
NetCDF::NetCDF_Fortran
noah_lsm_routines)

if(sp_FOUND)
target_link_libraries(global_cycle_lib PUBLIC sp::sp_d)
endif()

if(OpenMP_Fortran_FOUND)
target_link_libraries(global_cycle_lib PUBLIC OpenMP::OpenMP_Fortran)
endif()
Expand Down
5 changes: 4 additions & 1 deletion sorc/orog_mask_tools.fd/orog.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ target_link_libraries(
bacio::bacio_4
w3emc::w3emc_d
ip::ip_d
sp::sp_d
NetCDF::NetCDF_Fortran)

if(sp_FOUND)
target_link_libraries(orog_lib PUBLIC sp::sp_d)
endif()

if(OpenMP_Fortran_FOUND)
target_link_libraries(orog_lib PUBLIC OpenMP::OpenMP_Fortran)
endif()
Expand Down
7 changes: 6 additions & 1 deletion sorc/weight_gen.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ set(exe_name weight_gen)
add_executable(${exe_name} ${fortran_src})
target_link_libraries(
${exe_name}
sp::sp_d
NetCDF::NetCDF_Fortran)

if(sp_FOUND)
target_link_libraries(${exe_name} sp::sp_d)
else()
target_link_libraries(${exe_name} ip::ip_d)
endif()

install(TARGETS ${exe_name})

# If doxygen documentation we enabled, build it.
Expand Down

0 comments on commit 5f15470

Please sign in to comment.