We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 70f3ff4 + a57e1ac commit ffbd9fcCopy full SHA for ffbd9fc
GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSmoist_GridComp/CMakeLists.txt
@@ -36,6 +36,12 @@ esma_add_library (${this}
36
SRCS ${srcs}
37
DEPENDENCIES GEOS_Shared GMAO_mpeu MAPL Chem_Shared Chem_Base ESMF::ESMF)
38
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)
45
get_target_property (extra_incs fms_r4 INCLUDE_DIRECTORIES)
46
target_include_directories(${this} PRIVATE
47
$<BUILD_INTERFACE:${extra_incs}>
0 commit comments