diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d66acff7..26e2a07df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,11 +48,17 @@ set (srcs geos_utils/rs_scaleMod.F90 ) - -esma_add_library (${this} - SRCS ${srcs} - DEPENDENCIES MAPL gftl-shared - INCLUDES ${INC_ESMF}) +if (ESMA_USE_GFE_NAMESPACE) + esma_add_library (${this} + SRCS ${srcs} + DEPENDENCIES MAPL GFTL_SHARED::gftl-shared + INCLUDES ${INC_ESMF}) +else () + esma_add_library (${this} + SRCS ${srcs} + DEPENDENCIES MAPL gftl-shared + INCLUDES ${INC_ESMF}) +endif () if (FV_PRECISION STREQUAL R4) elseif (FV_PRECISION STREQUAL R4R8) # FV is R4 but FMS is R8