1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-23 10:34:52 +00:00

Fix build with Clang (not AppleClang) on macOS

This commit is contained in:
Carles Fernandez
2019-02-20 22:21:53 +01:00
parent a154f90bf5
commit 88147d4956
5 changed files with 44 additions and 0 deletions

View File

@@ -75,6 +75,15 @@ if(ENABLE_RAW_UDP AND PCAP_FOUND)
)
endif()
if(OS_IS_MACOSX)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") # not AppleClang
target_compile_definitions(signal_source_gr_blocks
PUBLIC
-DBOOST_ASIO_HAS_STD_STRING_VIEW
)
endif()
endif()
set_property(TARGET signal_source_gr_blocks APPEND PROPERTY
INTERFACE_INCLUDE_DIRECTORIES $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
)