|
|
@ -209,8 +209,13 @@ endif()
|
|
|
|
# httplib
|
|
|
|
# httplib
|
|
|
|
add_library(httplib INTERFACE)
|
|
|
|
add_library(httplib INTERFACE)
|
|
|
|
if(USE_SYSTEM_CPP_HTTPLIB)
|
|
|
|
if(USE_SYSTEM_CPP_HTTPLIB)
|
|
|
|
find_package(CppHttp REQUIRED)
|
|
|
|
find_package(CppHttp 0.14.1)
|
|
|
|
target_link_libraries(httplib INTERFACE cpp-httplib::cpp-httplib)
|
|
|
|
if(CppHttp_FOUND)
|
|
|
|
|
|
|
|
target_link_libraries(httplib INTERFACE cpp-httplib::cpp-httplib)
|
|
|
|
|
|
|
|
else()
|
|
|
|
|
|
|
|
message(STATUS "Cpp-httplib not found or not suitable version! Falling back to bundled...")
|
|
|
|
|
|
|
|
target_include_directories(httplib INTERFACE ./httplib)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
else()
|
|
|
|
target_include_directories(httplib INTERFACE ./httplib)
|
|
|
|
target_include_directories(httplib INTERFACE ./httplib)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|