mirror of https://github.com/oxen-io/lokinet
identify
This commit is contained in:
parent
e2cd4d66cc
commit
b20e7bedf8
|
@ -57,7 +57,7 @@ add_ngtcp2_lib()
|
|||
# cpr configuration. Ideally we'd just do this via add_subdirectory, but cpr's cmake requires
|
||||
# 3.15+, and we target lower than that (and this is fairly simple to build).
|
||||
if(WITH_BOOTSTRAP)
|
||||
if(NOT BUILD_STATIC_DEPS)
|
||||
if(NOT BUILD_STATIC_DEPS)
|
||||
find_package(CURL REQUIRED COMPONENTS HTTP HTTPS SSL)
|
||||
|
||||
# CURL::libcurl wasn't added to FindCURL until cmake 3.12, so add it if necessary
|
||||
|
@ -70,13 +70,13 @@ if(NOT BUILD_STATIC_DEPS)
|
|||
target_link_libraries(CURL_libcurl INTERFACE libcurl)
|
||||
add_library(CURL::libcurl ALIAS CURL_libcurl)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
file(GLOB cpr_sources ${conf_depends} cpr/cpr/*.cpp)
|
||||
file(GLOB cpr_sources ${conf_depends} cpr/cpr/*.cpp)
|
||||
|
||||
add_library(cpr STATIC EXCLUDE_FROM_ALL ${cpr_sources})
|
||||
target_link_libraries(cpr PUBLIC CURL::libcurl)
|
||||
target_include_directories(cpr PUBLIC cpr/include)
|
||||
target_compile_definitions(cpr PUBLIC CPR_CURL_NOSIGNAL)
|
||||
add_library(cpr::cpr ALIAS cpr)
|
||||
add_library(cpr STATIC EXCLUDE_FROM_ALL ${cpr_sources})
|
||||
target_link_libraries(cpr PUBLIC CURL::libcurl)
|
||||
target_include_directories(cpr PUBLIC cpr/include)
|
||||
target_compile_definitions(cpr PUBLIC CPR_CURL_NOSIGNAL)
|
||||
add_library(cpr::cpr ALIAS cpr)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue