Renamed HAVE_ASIO to ASIO_PATH
This commit is contained in:
parent
b0bd7df473
commit
f1327d3bc3
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue