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:
parent
cc0dc20947
commit
1bb89e1e8e
6 changed files with 8 additions and 8 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue