Fixes #317: Make use of ASIO_STANDALONE when using standalone asio in order to compile on older asio versions without boost

This commit is contained in:
eidheim 2021-03-26 10:02:04 +01:00
commit 1bb89e1e8e
6 changed files with 8 additions and 8 deletions

View file

@ -21,7 +21,7 @@ target_link_libraries(simple-web-server INTERFACE ${CMAKE_THREAD_LIBS_INIT})
# TODO 2020 when Debian Jessie LTS ends:
# Remove Boost system, thread, regex components; use Boost::<component> aliases; remove Boost target_include_directories
if(USE_STANDALONE_ASIO)
target_compile_definitions(simple-web-server INTERFACE USE_STANDALONE_ASIO)
target_compile_definitions(simple-web-server INTERFACE ASIO_STANDALONE)
find_path(ASIO_PATH asio.hpp)
if(NOT ASIO_PATH)
message(FATAL_ERROR "Standalone Asio not found")