Skip to content

Commit

Permalink
Merge pull request NOAA-GFDL#28 from GEOS-ESM/geos/develop
Browse files Browse the repository at this point in the history
Merge JEDI Cmake change into geos/master
  • Loading branch information
mathomp4 authored Jun 3, 2020
2 parents 6efbf6d + 2a0806f commit eac9084
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,19 @@ set (srcs
geos_utils/rs_scaleMod.F90
)


esma_add_library (${this}
SRCS ${srcs}
DEPENDENCIES MAPL gftl-shared
INCLUDES ${INC_ESMF})

if (FV_PRECISION STREQUAL R4)
elseif (FV_PRECISION STREQUAL R4R8) # FV is R4 but FMS is R8
get_target_property (extra_incs fms_r4 INCLUDE_DIRECTORIES)
target_include_directories(${this} PUBLIC ${extra_incs})
elseif (FV_PRECISION STREQUAL R8)
endif ()

esma_add_library (${this}
SRCS ${srcs}
DEPENDENCIES MAPL gftl-shared
INCLUDES ${extra_incs} ${INC_ESMF} ${INC_NETCDF})

if (FV_PRECISION STREQUAL R4)
target_compile_definitions (${this} PRIVATE -DSINGLE_FV -DOVERLOAD_R4)
target_link_libraries (${this} PUBLIC fms_r4)
Expand Down

0 comments on commit eac9084

Please sign in to comment.