diff --git a/CMakeLists.txt b/CMakeLists.txt index 09ce5a9..c40c405 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,11 +22,11 @@ target_link_libraries(simple-web-server INTERFACE ${CMAKE_THREAD_LIBS_INIT}) # Remove Boost system, thread, regex components; use Boost:: aliases; remove Boost target_include_directories if(USE_STANDALONE_ASIO) target_compile_definitions(simple-web-server INTERFACE USE_STANDALONE_ASIO) - find_path(HAVE_ASIO asio.hpp) - if(NOT HAVE_ASIO) + find_path(ASIO_PATH asio.hpp) + if(NOT ASIO_PATH) message(FATAL_ERROR "Standalone Asio not found") else() - target_include_directories(simple-web-server INTERFACE ${HAVE_ASIO}) + target_include_directories(simple-web-server INTERFACE ${ASIO_PATH}) endif() else() find_package(Boost 1.53.0 COMPONENTS system thread REQUIRED)