| 1 |
if (ECM_FOUND) |
| 2 |
include(ECMEnableSanitizers) |
| 3 |
endif() |
| 4 |
|
| 5 |
# Mark the specified target's include directories as INTERFACE_SYSTEM_INCLUDE_DIRECTORIES |
| 6 |
function(mark_as_system_target target) |
| 7 |
# see also: https://gitlab.kitware.com/cmake/cmake/-/issues/21211 |
| 8 |
get_property( |
| 9 |
include_dirs |
| 10 |
TARGET ${target} |
| 11 |
PROPERTY INTERFACE_INCLUDE_DIRECTORIES |
| 12 |
) |
| 13 |
set_property(TARGET ${target} PROPERTY INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${include_dirs}") |
| 14 |
endfunction() |
| 15 |
|
| 16 |
if (ZSTD_FOUND AND NOT BOOST_IOSTREAMS_HAS_ZSTD) |
| 17 |
add_subdirectory(boost-zstd) |
| 18 |
mark_as_system_target(boost-zstd) |
| 19 |
endif() |
| 20 |
|
| 21 |
add_subdirectory(robin-map) |
| 22 |
|
| 23 |
mark_as_system_target(robin_map) |