Skip to content

Commit

Permalink
Merging develop into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightly Bot authored and cwsmith committed Feb 4, 2023
2 parents 8311337 + e9772ac commit 229f849
Show file tree
Hide file tree
Showing 47 changed files with 1,846 additions and 199 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@ target_compile_features(core INTERFACE cxx_std_11)
scorec_export_library(core)

#check for mallinfo2
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
include(CheckCXXSymbolExists)
check_cxx_symbol_exists(mallinfo2 "malloc.h" PUMI_HAS_MALLINFO2)
if(PUMI_HAS_MALLINFO2)
target_compile_definitions(core INTERFACE -DPUMI_HAS_MALLINFO2)
target_compile_definitions(pumi PRIVATE -DPUMI_HAS_MALLINFO2)
target_compile_definitions(pcu PRIVATE -DPUMI_HAS_MALLINFO2)
endif()
endif()

Expand Down
Loading

0 comments on commit 229f849

Please sign in to comment.