Re-enable concepts for Boost Asio in version 1.73

This commit is contained in:
Carles Fernandez 2020-05-15 22:04:32 +02:00
parent dfd596fca7
commit 32e6a50b05
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
1 changed files with 9 additions and 7 deletions

View File

@ -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