Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to enable jemalloc build #568

Merged
merged 9 commits into from
Jan 9, 2025
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ ecbuild_add_executable (
# To fix this, we explicitly set the linker language to Fortran.
set_target_properties (GEOSgcm.x PROPERTIES LINKER_LANGUAGE Fortran)

# Using JeMalloc will be optional, default OFF
option (USE_JEMALLOC "Use JeMalloc" OFF)
if (USE_JEMALLOC)
find_package (JeMalloc REQUIRED)
target_link_libraries (GEOSgcm.x JeMalloc::JeMalloc)
endif ()

ecbuild_add_executable (
TARGET idfupd.x
SOURCES idfupd.F90
Expand Down
Loading