File tree Expand file tree Collapse file tree 5 files changed +12
-5
lines changed
Expand file tree Collapse file tree 5 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,9 @@ set (alldirs
1111option (BUILD_WITH_GIGATRAJ "Build GEOSgcm with Gigatraj" OFF )
1212
1313if (BUILD_WITH_GIGATRAJ)
14- add_definitions (-DHAS_GIGATRAJ)
15- set (alldirs ${alldirs} GEOSgigatraj_GridComp)
14+ list (APPEND alldirs GEOSgigatraj_GridComp)
1615endif ()
1716
18-
1917if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /GEOS_GcmGridComp.F90)
2018
2119 ecbuild_declare_project()
@@ -24,6 +22,8 @@ if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/GEOS_GcmGridComp.F90)
2422 SUBCOMPONENTS ${alldirs}
2523 DEPENDENCIES MAPL ESMF::ESMF)
2624
25+ target_compile_definitions (${this} PRIVATE $<$<BOOL :${BUILD_WITH_GIGATRAJ} >:HAS_GIGATRAJ>)
26+
2727 ecbuild_install_project( NAME GEOSgcm_GridComp)
2828
2929else ()
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ elseif (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/GEOS_AgcmGridComp.F90)
2020 SUBCOMPONENTS ${alldirs}
2121 DEPENDENCIES MAPL GEOS_Shared Chem_Shared ESMF::ESMF)
2222
23+ target_compile_definitions (${this} PRIVATE $<$<BOOL :${BUILD_WITH_GIGATRAJ} >:HAS_GIGATRAJ>)
24+
2325else ()
2426
2527 esma_add_subdirectories (${alldirs} )
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/GEOS_SuperdynGridComp.F90)
2020 SUBCOMPONENTS ${alldirs}
2121 DEPENDENCIES MAPL GEOS_Shared ESMF::ESMF)
2222
23+ target_compile_definitions (${this} PRIVATE $<$<BOOL :${BUILD_WITH_GIGATRAJ} >:HAS_GIGATRAJ>)
24+
2325else ()
2426
2527 esma_add_subdirectories (${alldirs} )
Original file line number Diff line number Diff line change 1+ @GigaTraj /
2+ GigaTraj /
3+ GigaTraj@ /
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ esma_set_this()
33set (dependencies MAPL ESMF::ESMF geos_giga metsources filters gigatraj)
44
55esma_add_library (${this}
6- SRCS GEOS_Giga_InterOp.F90 Gigatraj_Utils.F90 GEOS_GigatrajGridComp.F90
6+ SRCS GEOS_Giga_InterOp.F90 Gigatraj_Utils.F90 GEOS_GigatrajGridComp.F90
77 DEPENDENCIES ${dependencies} )
88
9- esma_add_subdirectories( @ GigaTraj)
9+ esma_add_subdirectories(GigaTraj)
You can’t perform that action at this time.
0 commit comments