--- CMakeLists.txt.orig 2019-05-23 09:57:03.000000000 +0200 +++ CMakeLists.txt 2019-05-25 15:42:39.000000000 +0200 @@ -502,7 +502,21 @@ if(NOT Boost_FOUND) message(FATAL_ERROR "Fatal error: Boost (version >=${GNSSSDR_BOOST_MIN_VERSION}) required.") endif() - +if(${Boost_VERSION} VERSION_LESS 107000) + # Check if we have std::string_view + include(CheckCXXSourceCompiles) + check_cxx_source_compiles(" + #include <string_view> + int main() + { std::string_view sv; }" + has_string_view + ) + if(${has_string_view}) + add_definitions(-DBOOST_ASIO_HAS_STD_STRING_VIEW=1) + else() + add_definitions(-DBOOST_ASIO_HAS_STD_STRING_VIEW=0) + endif() +endif() ################################################################################