Skip to content

Commit ffbd9fc

Browse files
authored
Merge branch 'develop' into feature/wjiang/GEOS_GigaTraj
2 parents 70f3ff4 + a57e1ac commit ffbd9fc

File tree

1 file changed

+6
-0
lines changed
  • GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSmoist_GridComp

1 file changed

+6
-0
lines changed

GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSmoist_GridComp/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ esma_add_library (${this}
3636
SRCS ${srcs}
3737
DEPENDENCIES GEOS_Shared GMAO_mpeu MAPL Chem_Shared Chem_Base ESMF::ESMF)
3838

39+
# We need to add_dependencies for fms_r4 because CMake doesn't know we
40+
# need it for include purposes. In R4R8, we only ever link against
41+
# fms_r8, so it doesn't know to build the target fms_r4
42+
# NOTE NOTE NOTE: This should *not* be included in GEOSgcm v12
43+
# because FMS is pre-built library in that case.
44+
add_dependencies (${this} fms_r4)
3945
get_target_property (extra_incs fms_r4 INCLUDE_DIRECTORIES)
4046
target_include_directories(${this} PRIVATE
4147
$<BUILD_INTERFACE:${extra_incs}>

0 commit comments

Comments
 (0)