Skip to content

Commit

Permalink
Merge branch 'release/MAPL-v3' into mapl3/tclune/improve-mapl-init
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed May 13, 2024
2 parents 2be9f57 + 0d39718 commit bbefa62
Show file tree
Hide file tree
Showing 36 changed files with 38 additions and 48 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ workflows:
ctest_options: "-L 'ESSENTIAL' --output-on-failure"
persist_workspace: true # Needed for MAPL tutorials

# Builds MAPL like UFS does (no pFlogger, static)
# Builds MAPL without PFLOGGER and FARGPARSE
- ci/build:
name: build-UFS-MAPL-on-<< matrix.compiler >>
name: build-MAPL-without-pFlogger-and-fArgParse-on-<< matrix.compiler >>
context:
- docker-hub-creds
matrix:
parameters:
compiler: [ifort]
compiler: [gfortran, ifort]
baselibs_version: *baselibs_version
repo: MAPL
mepodevelop: false
remove_flap: true
remove_pflogger: true
extra_cmake_options: "-DBUILD_WITH_PFLOGGER=OFF -DBUILD_WITH_FARGPARSE=OFF -DUSE_EXTDATA2G=OFF -DBUILD_SHARED_MAPL=OFF"
extra_cmake_options: "-DBUILD_WITH_PFLOGGER=OFF -DBUILD_WITH_FARGPARSE=OFF"
run_unit_tests: true
ctest_options: "-L 'ESSENTIAL' --output-on-failure"

Expand Down
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Removes backward compatibility for MAPL_FargparseCLI functions. Only accepts function usage in which the result is of
MAPL_CapOptions type.
- Remove FLAP support.
- Remove `BUILD_SHARED_MAPL` CMake option. MAPL3 is now always built as a shared library.

### Added

Expand Down Expand Up @@ -42,9 +43,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Now gives the name of the timer that has not been stopped when
finalizing a profiler.
- Changed all ESMF_AttributeGet and ESMF_AttributeSet to ESMF_InfoGet and ESMF_InfoSet respectively as old calls will be deprecated soon.
- Updated `components.yaml`
- ESMA_env v4.0.0 (Baselibs 7, new yaFyaml interfaces)
- Updated CI to use Baselibs 7
- Update executables using FLAP to use fArgParse
- Update `Findudunits.cmake` to link with libdl and look for the `udunits2.xml` file (as some MAPL tests require it)

Expand Down
8 changes: 0 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@ endif ()
# This tells cmake to assume MAPL's cmake directory is the first place to look
list (PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")

option (BUILD_SHARED_MAPL "Build shared MAPL libraries" ON)
if (BUILD_SHARED_MAPL)
set (MAPL_LIBRARY_TYPE SHARED)
else ()
set (MAPL_LIBRARY_TYPE STATIC)
endif()
message (STATUS "Building MAPL as ${MAPL_LIBRARY_TYPE} libraries")

# Some users of MAPL build GFE libraries inline with their application
# using an add_subdirectory() call rather than as a pre-build library.
# This would then populate the target already leading to find_package()
Expand Down
2 changes: 1 addition & 1 deletion MAPL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ esma_add_library (${this}
SRCS MAPL.F90
DEPENDENCIES MAPL.base MAPL.generic MAPL.pfio MAPL_cfio_r4 MAPL.gridcomps MAPL.orbit MAPL.griddedio MAPL.field_utils ${EXTDATA_TARGET}
ESMF::ESMF NetCDF::NetCDF_Fortran MPI::MPI_Fortran
TYPE ${MAPL_LIBRARY_TYPE}
TYPE SHARED
)

target_compile_definitions (${this} PRIVATE $<$<BOOL:${USE_EXTDATA2G}>:BUILD_WITH_EXTDATA2G>)
Expand Down
2 changes: 1 addition & 1 deletion MAPL_cfio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ set (lib MAPL_cfio_${precision})
esma_add_library (${lib}
SRCS ${srcs}
DEPENDENCIES ESMF::ESMF NetCDF::NetCDF_Fortran
TYPE ${MAPL_LIBRARY_TYPE}
TYPE SHARED
)

if (precision MATCHES "r8")
Expand Down
2 changes: 1 addition & 1 deletion base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ esma_add_library(
DEPENDENCIES MAPL.shared MAPL.constants MAPL.profiler MAPL.pfio MAPL_cfio_r4 MAPL.field_utils PFLOGGER::pflogger
GFTL_SHARED::gftl-shared-v2 GFTL_SHARED::gftl-shared-v1 GFTL::gftl-v2 GFTL::gftl-v1
ESMF::ESMF NetCDF::NetCDF_Fortran MPI::MPI_Fortran
TYPE ${MAPL_LIBRARY_TYPE})
TYPE SHARED)

# We don't want to disable good NAG debugging flags everywhere, but we still need to do it for
# interfaces (e.g. MPI) that allow multiple types for the same argument (eg buffer).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set (srcs
ACG_GridComp.F90
)

esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL TYPE ${MAPL_LIBRARY_TYPE})
esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL TYPE SHARED)

target_link_libraries(${this} PRIVATE ESMF::ESMF)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set (srcs
HelloWorld_GridComp.F90
)

esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL TYPE ${MAPL_LIBRARY_TYPE})
esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL TYPE SHARED)
if (NOT CMAKE_Fortran_COMPILER_ID MATCHES "NAG")
target_link_libraries(${this} PRIVATE OpenMP::OpenMP_Fortran)
endif ()
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/grid_comps/leaf_comp_a/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set (srcs
AAA_GridComp.F90
)

esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL TYPE ${MAPL_LIBRARY_TYPE})
esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL TYPE SHARED)
if (NOT CMAKE_Fortran_COMPILER_ID MATCHES "NAG")
target_link_libraries(${this} PRIVATE OpenMP::OpenMP_Fortran)
endif ()
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/grid_comps/leaf_comp_b/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set (srcs
BBB_GridComp.F90
)

esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL TYPE ${MAPL_LIBRARY_TYPE})
esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL TYPE SHARED)
if (NOT CMAKE_Fortran_COMPILER_ID MATCHES "NAG")
target_link_libraries(${this} PRIVATE OpenMP::OpenMP_Fortran)
endif ()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set (srcs
ParentNoChildren_GridComp.F90
)

esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL TYPE ${MAPL_LIBRARY_TYPE})
esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL TYPE SHARED)
if (NOT CMAKE_Fortran_COMPILER_ID MATCHES "NAG")
target_link_libraries(${this} PRIVATE OpenMP::OpenMP_Fortran)
endif ()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set (srcs
ParentOneChild_GridComp.F90
)

esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL TYPE ${MAPL_LIBRARY_TYPE})
esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL TYPE SHARED)
if (NOT CMAKE_Fortran_COMPILER_ID MATCHES "NAG")
target_link_libraries(${this} PRIVATE OpenMP::OpenMP_Fortran)
endif ()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set (srcs
ParentTwoSiblings_GridComp.F90
)

esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL TYPE ${MAPL_LIBRARY_TYPE})
esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL TYPE SHARED)
if (NOT CMAKE_Fortran_COMPILER_ID MATCHES "NAG")
target_link_libraries(${this} PRIVATE OpenMP::OpenMP_Fortran)
endif ()
Expand Down
2 changes: 1 addition & 1 deletion field_utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ endif ()
esma_add_library(${this}
SRCS ${srcs}
DEPENDENCIES MAPL.shared PFLOGGER::pflogger udunits2f
TYPE ${MAPL_LIBRARY_TYPE}
TYPE SHARED
)

#add_subdirectory(specs)
Expand Down
2 changes: 1 addition & 1 deletion generic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ esma_add_library(${this}
SRCS ${srcs}
DEPENDENCIES MAPL.oomph MAPL.shared MAPL.profiler MAPL.base
PFLOGGER::pflogger GFTL_SHARED::gftl-shared-v2 GFTL_SHARED::gftl-shared-v1 GFTL::gftl-v2 GFTL::gftl-v1
TYPE ${MAPL_LIBRARY_TYPE}
TYPE SHARED
)
target_include_directories (${this} PUBLIC
$<BUILD_INTERFACE:${MAPL_SOURCE_DIR}/include>)
Expand Down
2 changes: 1 addition & 1 deletion generic3g/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ endif ()
esma_add_library(${this}
SRCS ${srcs}
DEPENDENCIES MAPL.regridder_mgr MAPL.geom_mgr MAPL.shared MAPL.profiler MAPL.base MAPL.hconfig_utils YAFYAML::yafyaml PFLOGGER::pflogger GFTL_SHARED::gftl-shared-v2 GFTL::gftl-v2
TYPE ${MAPL_LIBRARY_TYPE}
TYPE SHARED
)
add_subdirectory(specs)
add_subdirectory(registry)
Expand Down
2 changes: 1 addition & 1 deletion geom_mgr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ set(srcs
esma_add_library(${this}
SRCS ${srcs}
DEPENDENCIES MAPL.pfio MAPL.base MAPL.shared MAPL.field_utils MAPL.hconfig_utils GFTL::gftl-v2
TYPE ${MAPL_LIBRARY_TYPE}
TYPE SHARED
)

add_subdirectory(MaplGeom)
Expand Down
2 changes: 1 addition & 1 deletion gridcomps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ esma_add_library (${this}
SRCS MAPL_GridComps.F90
DEPENDENCIES MAPL.base MAPL.pfio MAPL_cfio_r4 MAPL.cap
$<$<BOOL:${BUILD_WITH_FARGPARSE}>:FARGPARSE::fargparse>
TYPE ${MAPL_LIBRARY_TYPE}
TYPE SHARED
)

target_include_directories (${this} PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion gridcomps/Cap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ endif()


esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL.constants MAPL.base MAPL.profiler MAPL.history
MAPL.ExtData ${EXTDATA2G_TARGET} TYPE ${MAPL_LIBRARY_TYPE})
MAPL.ExtData ${EXTDATA2G_TARGET} TYPE SHARED)
# We don't want to disable good NAG debugging flags everywhere, but we still need to do it for
# interfaces (e.g. MPI) that allow multiple types for the same argument (eg buffer).
if (DUSTY)
Expand Down
2 changes: 1 addition & 1 deletion gridcomps/ExtData/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set (srcs
)

esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL.constants MAPL.base MAPL.generic MAPL.pfio
MAPL.griddedio MAPL_cfio_r4 TYPE ${MAPL_LIBRARY_TYPE})
MAPL.griddedio MAPL_cfio_r4 TYPE SHARED)
target_link_libraries (${this} PUBLIC GFTL::gftl GFTL_SHARED::gftl-shared ESMF::ESMF NetCDF::NetCDF_Fortran
PRIVATE MPI::MPI_Fortran)

Expand Down
2 changes: 1 addition & 1 deletion gridcomps/ExtData2G/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ set (srcs
)


esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL.base MAPL.generic MAPL.griddedio TYPE ${MAPL_LIBRARY_TYPE})
esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL.base MAPL.generic MAPL.griddedio TYPE SHARED)
target_link_libraries (${this} PUBLIC GFTL::gftl GFTL_SHARED::gftl-shared ESMF::ESMF NetCDF::NetCDF_Fortran
PRIVATE MPI::MPI_Fortran)
target_include_directories (${this} PUBLIC $<BUILD_INTERFACE:${MAPL_SOURCE_DIR}/include>)
Expand Down
2 changes: 1 addition & 1 deletion gridcomps/History/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set (srcs
)

esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL.constants MAPL.base MAPL.generic MAPL.profiler MAPL.griddedio
TYPE ${MAPL_LIBRARY_TYPE})
TYPE SHARED)
target_link_libraries (${this} PUBLIC GFTL::gftl GFTL_SHARED::gftl-shared ESMF::ESMF NetCDF::NetCDF_Fortran
PRIVATE MPI::MPI_Fortran)

Expand Down
2 changes: 1 addition & 1 deletion gridcomps/Orbit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set (srcs
MAPL_OrbGridCompMod.F90
)

esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL.constants MAPL.base MAPL.generic TYPE ${MAPL_LIBRARY_TYPE})
esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL.constants MAPL.base MAPL.generic TYPE SHARED)
target_link_libraries (${this} PUBLIC GFTL::gftl GFTL_SHARED::gftl-shared ESMF::ESMF NetCDF::NetCDF_Fortran
PRIVATE MPI::MPI_Fortran)

Expand Down
2 changes: 1 addition & 1 deletion gridcomps/cap3g/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ find_package (MPI REQUIRED)

esma_add_library(${this}
SRCS ${srcs}
DEPENDENCIES MAPL.generic3g TYPE ${MAPL_LIBRARY_TYPE})
DEPENDENCIES MAPL.generic3g TYPE SHARED)

add_subdirectory(tests EXCLUDE_FROM_ALL)
2 changes: 1 addition & 1 deletion griddedio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set (srcs
)

esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL.constants MAPL.base MAPL.pfio
MAPL_cfio_r4 TYPE ${MAPL_LIBRARY_TYPE})
MAPL_cfio_r4 TYPE SHARED)
target_link_libraries (${this} PUBLIC GFTL::gftl GFTL_SHARED::gftl-shared ESMF::ESMF NetCDF::NetCDF_Fortran
PRIVATE MPI::MPI_Fortran)

Expand Down
2 changes: 1 addition & 1 deletion hconfig_utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ endif ()
esma_add_library(${this}
SRCS ${srcs}
DEPENDENCIES MAPL.shared PFLOGGER::pflogger
TYPE ${MAPL_LIBRARY_TYPE}
TYPE SHARED
)

target_include_directories (${this} PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion mapl3g/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ esma_add_library (${this}
SRCS ${srcs}
DEPENDENCIES MAPL.generic3g MAPL.pfio MAPL.cap3g MAPL.gridcomps MAPL.griddedio MAPL.field_utils ${EXTDATA_TARGET}
ESMF::ESMF NetCDF::NetCDF_Fortran MPI::MPI_Fortran PFLOGGER::pflogger
TYPE ${MAPL_LIBRARY_TYPE}
TYPE SHARED
)

target_compile_definitions (${this} PRIVATE $<$<BOOL:${USE_EXTDATA2G}>:BUILD_WITH_EXTDATA2G>)
Expand Down
2 changes: 1 addition & 1 deletion oomph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ set (srcs

esma_add_library(${this}
SRCS ${srcs}
DEPENDENCIES MAPL.base GFTL_SHARED::gftl-shared-v2 GFTL::gftl-v2 TYPE ${MAPL_LIBRARY_TYPE}
DEPENDENCIES MAPL.base GFTL_SHARED::gftl-shared-v2 GFTL::gftl-v2 TYPE SHARED
)
2 changes: 1 addition & 1 deletion pfio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ if (BUILD_WITH_PFLOGGER)
find_package (PFLOGGER REQUIRED)
endif ()

esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL.profiler NetCDF::NetCDF_Fortran NetCDF::NetCDF_C TYPE ${MAPL_LIBRARY_TYPE})
esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL.profiler NetCDF::NetCDF_Fortran NetCDF::NetCDF_C TYPE SHARED)

target_link_libraries (${this} PUBLIC GFTL::gftl-v2 GFTL_SHARED::gftl-shared-v2 GFTL_SHARED::gftl-shared PFLOGGER::pflogger PRIVATE MPI::MPI_Fortran)
# CMake has an OpenMP issue with NAG Fortran: https://gitlab.kitware.com/cmake/cmake/-/issues/21280
Expand Down
2 changes: 1 addition & 1 deletion pflogger_stub/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set (srcs
pflogger_stub.F90
)

esma_add_library (${this} SRCS ${srcs} DEPENDENCIES GFTL_SHARED::gftl-shared TYPE ${MAPL_LIBRARY_TYPE})
esma_add_library (${this} SRCS ${srcs} DEPENDENCIES GFTL_SHARED::gftl-shared TYPE SHARED)
add_library(PFLOGGER::pflogger ALIAS ${this})

target_include_directories (${this} PUBLIC $<BUILD_INTERFACE:${MAPL_SOURCE_DIR}/include>)
Expand Down
2 changes: 1 addition & 1 deletion pfunit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set (srcs
MAPL_Initialize.F90
)

esma_add_library (${this} EXCLUDE_FROM_ALL SRCS ${srcs} NOINSTALL TYPE ${MAPL_LIBRARY_TYPE})
esma_add_library (${this} EXCLUDE_FROM_ALL SRCS ${srcs} NOINSTALL TYPE SHARED)

target_link_libraries (${this} MAPL.shared MAPL.field_utils PFUNIT::pfunit ESMF::ESMF NetCDF::NetCDF_Fortran)
set_target_properties (${this} PROPERTIES Fortran_MODULE_DIRECTORY ${include_${this}})
2 changes: 1 addition & 1 deletion profiler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ set (srcs
MAPL_Profiler.F90
)

esma_add_library (${this} SRCS ${srcs} DEPENDENCIES GFTL_SHARED::gftl-shared GFTL::gftl-v1 GFTL::gftl-v2 PFLOGGER::pflogger MAPL.shared MPI::MPI_Fortran TYPE ${MAPL_LIBRARY_TYPE})
esma_add_library (${this} SRCS ${srcs} DEPENDENCIES GFTL_SHARED::gftl-shared GFTL::gftl-v1 GFTL::gftl-v2 PFLOGGER::pflogger MAPL.shared MPI::MPI_Fortran TYPE SHARED)
target_include_directories (${this} PRIVATE ${MAPL_SOURCE_DIR}/include)

# CMake has an OpenMP issue with NAG Fortran: https://gitlab.kitware.com/cmake/cmake/-/issues/21280
Expand Down
2 changes: 1 addition & 1 deletion regridder_mgr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ set(srcs
esma_add_library(${this}
SRCS ${srcs}
DEPENDENCIES MAPL.geom_mgr MAPL.pfio MAPL.base MAPL.shared MAPL.field_utils GFTL::gftl-v2
TYPE ${MAPL_LIBRARY_TYPE}
TYPE SHARED
)

target_include_directories (${this} PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion shared/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ set (srcs
Shmem/Shmem.F90 Shmem/Shmem_implementation.F90
)

esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.constants GFTL_SHARED::gftl-shared GFTL_SHARED::gftl-shared-v2 MPI::MPI_Fortran PFLOGGER::pflogger TYPE ${MAPL_LIBRARY_TYPE})
esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.constants GFTL_SHARED::gftl-shared GFTL_SHARED::gftl-shared-v2 MPI::MPI_Fortran PFLOGGER::pflogger TYPE SHARED)

# We don't want to disable good NAG debugging flags everywhere, but we still need to do it for
# interfaces (e.g. MPI) that allow multiple types for the same argument (eg buffer).
Expand Down
2 changes: 1 addition & 1 deletion shared/Constants/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set (srcs
Constants.F90
)

esma_add_library (${this} SRCS ${srcs} TYPE ${MAPL_LIBRARY_TYPE})
esma_add_library (${this} SRCS ${srcs} TYPE SHARED)

target_include_directories (${this} PUBLIC $<BUILD_INTERFACE:${MAPL_SOURCE_DIR}/include>)

Expand Down
2 changes: 1 addition & 1 deletion udunits2f/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")

esma_add_library(${this}
SRCS ${srcs}
TYPE ${MAPL_LIBRARY_TYPE}
TYPE SHARED
)

find_package(udunits REQUIRED)
Expand Down

0 comments on commit bbefa62

Please sign in to comment.