1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 04:30:33 +00:00

Fix building in some macOS configurations

This commit is contained in:
Carles Fernandez 2019-05-16 20:49:10 +02:00
parent ab1634b565
commit a1f77607c3
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
5 changed files with 5 additions and 5 deletions

View File

@ -95,7 +95,7 @@ if(Boost_VERSION VERSION_GREATER "106599")
endif()
if(OS_IS_MACOSX)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") # not AppleClang
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_definitions(pvt_libs
PUBLIC
-DBOOST_ASIO_HAS_STD_STRING_VIEW

View File

@ -77,7 +77,7 @@ if(ENABLE_RAW_UDP AND PCAP_FOUND)
endif()
if(OS_IS_MACOSX)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") # not AppleClang
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_definitions(signal_source_gr_blocks
PUBLIC
-DBOOST_ASIO_HAS_STD_STRING_VIEW

View File

@ -101,7 +101,7 @@ if(Boost_VERSION VERSION_GREATER "106599")
endif()
if(OS_IS_MACOSX)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") # not AppleClang
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_definitions(tracking_libs
PUBLIC
-DBOOST_ASIO_HAS_STD_STRING_VIEW

View File

@ -69,7 +69,7 @@ endif()
if(OS_IS_MACOSX)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") # not AppleClang
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_definitions(core_monitor
PUBLIC
-DBOOST_ASIO_HAS_STD_STRING_VIEW

View File

@ -163,7 +163,7 @@ target_link_libraries(core_receiver
)
if(OS_IS_MACOSX)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") # not AppleClang
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_definitions(core_receiver
PUBLIC
-DBOOST_ASIO_HAS_STD_STRING_VIEW