Renamed HAVE_ASIO to ASIO_PATH

This commit is contained in:
eidheim 2019-06-24 10:20:32 +02:00
commit f1327d3bc3

View file

@ -22,11 +22,11 @@ target_link_libraries(simple-web-server INTERFACE ${CMAKE_THREAD_LIBS_INIT})
# Remove Boost system, thread, regex components; use Boost::<component> aliases; remove Boost target_include_directories # Remove Boost system, thread, regex components; use Boost::<component> aliases; remove Boost target_include_directories
if(USE_STANDALONE_ASIO) if(USE_STANDALONE_ASIO)
target_compile_definitions(simple-web-server INTERFACE USE_STANDALONE_ASIO) target_compile_definitions(simple-web-server INTERFACE USE_STANDALONE_ASIO)
find_path(HAVE_ASIO asio.hpp) find_path(ASIO_PATH asio.hpp)
if(NOT HAVE_ASIO) if(NOT ASIO_PATH)
message(FATAL_ERROR "Standalone Asio not found") message(FATAL_ERROR "Standalone Asio not found")
else() else()
target_include_directories(simple-web-server INTERFACE ${HAVE_ASIO}) target_include_directories(simple-web-server INTERFACE ${ASIO_PATH})
endif() endif()
else() else()
find_package(Boost 1.53.0 COMPONENTS system thread REQUIRED) find_package(Boost 1.53.0 COMPONENTS system thread REQUIRED)