Skip to content

Commit

Permalink
No need to add_dependencies(cdeps)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickSzapiro-NOAA committed Oct 17, 2024
1 parent ae98062 commit 4a335f8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CICE-interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ list(APPEND lib_src_files
${icepack_files}
${cice_mpi_comm_files}
${cice_nuopc_cmeps_driver_files}
${cice_cdeps_inline_files})
${cice_cdeps_share_files})

list(APPEND _cice_defs FORTRANUNDERSCORE
coupled)
Expand Down
2 changes: 1 addition & 1 deletion CICE-interface/cice_files.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ list(APPEND cice_nuopc_cmeps_driver_files
CICE/cicecore/drivers/nuopc/cmeps/ice_mesh_mod.F90
)

list(APPEND cice_cdeps_inline_files
list(APPEND cice_cdeps_share_files
#-- Using ice prescribed ifndef cesmcoupled
${PROJECT_SOURCE_DIR}/CDEPS-interface/CDEPS/share/shr_orb_mod.F90
${PROJECT_SOURCE_DIR}/CDEPS-interface/CDEPS/share/shr_const_mod.F90
Expand Down
5 changes: 2 additions & 3 deletions CMEPS-interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ list(APPEND _ufs_util_files
${PROJECT_SOURCE_DIR}/CDEPS-interface/CDEPS/share/shr_kind_mod.F90
${PROJECT_SOURCE_DIR}/CDEPS-interface/ufs/cdeps_share/shr_assert_mod.F90
${PROJECT_SOURCE_DIR}/CDEPS-interface/ufs/cdeps_share/shr_infnan_mod.F90
${PROJECT_SOURCE_DIR}/CDEPS-interface/CDEPS/streams/dshr_methods_mod.F90
${PROJECT_SOURCE_DIR}/CDEPS-interface/ufs/cdeps_share/shr_is_restart_fh_mod.F90)

list(APPEND _mediator_files
Expand Down Expand Up @@ -192,10 +191,10 @@ if(OpenMP_Fortran_FOUND)
endif()

### Set dependency for CDEPS if inline capability is requested
#if(CDEPS_INLINE)
if(CDEPS_INLINE)
add_dependencies(cmeps cdeps::cdeps)
target_link_libraries(cmeps PUBLIC cdeps::cdeps)
#endif()
endif()

###############################################################################
### Install
Expand Down
4 changes: 0 additions & 4 deletions MOM6-interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ if(MOM6SOLO)
#endif()
endif()

add_dependencies(mom6 cdeps::cdeps)
target_compile_definitions(mom6 PUBLIC "DISABLE_FoX")
target_link_libraries(mom6 PUBLIC cdeps::cdeps)

###############################################################################
### Install
###############################################################################
Expand Down

0 comments on commit 4a335f8

Please sign in to comment.