mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-04-21 18:23:15 +00:00
Re-enable concepts for Boost Asio in version 1.73
This commit is contained in:
parent
dfd596fca7
commit
32e6a50b05
@ -734,13 +734,15 @@ if(Boost_VERSION_STRING VERSION_GREATER 1.70.99)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Disable concepts to address https://github.com/boostorg/asio/issues/312
|
||||
if((CMAKE_CXX_COMPILER_ID STREQUAL GNU AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.9) OR
|
||||
(CMAKE_CXX_COMPILER_ID MATCHES Clang))
|
||||
target_compile_definitions(Boost::headers
|
||||
INTERFACE
|
||||
-DBOOST_ASIO_DISABLE_CONCEPTS
|
||||
)
|
||||
if(Boost_VERSION_STRING VERSION_LESS 1.73)
|
||||
# Disable concepts to address https://github.com/boostorg/asio/issues/312
|
||||
if((CMAKE_CXX_COMPILER_ID STREQUAL GNU AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.9) OR
|
||||
(CMAKE_CXX_COMPILER_ID MATCHES Clang))
|
||||
target_compile_definitions(Boost::headers
|
||||
INTERFACE
|
||||
-DBOOST_ASIO_DISABLE_CONCEPTS
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Workaround for https://github.com/boostorg/format/issues/67
|
||||
|
Loading…
x
Reference in New Issue
Block a user