mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
build: Add feature flag FAIRMQ_HAS_STD_PMR
Currently Clang (libc++) does not implement <memory_resource>.
This commit is contained in:
parent
904037d9be
commit
6eb973235a
|
@ -174,3 +174,12 @@ if( CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
|
|||
else()
|
||||
set(FAIRMQ_HAS_STD_FILESYSTEM 1)
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED FAIRMQ_HAS_STD_PMR)
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
# Clang (to be more precise: libc++) currently does not implement <memory_resource>
|
||||
set(FAIRMQ_HAS_STD_PMR 0)
|
||||
else()
|
||||
set(FAIRMQ_HAS_STD_PMR 1)
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
@ -187,7 +187,10 @@ if(BUILD_FAIRMQ)
|
|||
if(BUILD_OFI_TRANSPORT)
|
||||
target_compile_definitions(${target} PRIVATE BUILD_OFI_TRANSPORT)
|
||||
endif()
|
||||
target_compile_definitions(${target} PUBLIC FAIRMQ_HAS_STD_FILESYSTEM=${FAIRMQ_HAS_STD_FILESYSTEM})
|
||||
target_compile_definitions(${target} PUBLIC
|
||||
FAIRMQ_HAS_STD_FILESYSTEM=${FAIRMQ_HAS_STD_FILESYSTEM}
|
||||
FAIRMQ_HAS_STD_PMR=${FAIRMQ_HAS_STD_PMR}
|
||||
)
|
||||
|
||||
|
||||
#######################
|
||||
|
|
Loading…
Reference in New Issue
Block a user