make it build in normal mode too

pull/1005/head
Jeff Becker 4 years ago
parent 77213d7fa4
commit 336a748695
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -20,9 +20,11 @@ if(NOT IOS AND NOT ANDROID AND NOT WIN32)
add_subdirectory(${LIBCURL_ROOT})
set(CURL_INCLUDE_DIRS ${LIBCURL_ROOT}/include)
set(CURL_LIBRARIES libcurl)
set(CURL_LIB ${CURL_LIBRARIES})
set(CURL_FOUND TRUE)
else()
find_package(CURL REQUIRED)
include(FindCURL)
set(CURL_LIB CURL::libcurl)
endif()
endif()

@ -69,8 +69,7 @@ if(ANDROID)
endif()
target_link_libraries(${UTIL_LIB} PUBLIC ${CRYPTOGRAPHY_LIB} ${LOG_LIB})
target_link_libraries_system(${UTIL_LIB} absl::synchronization absl::hash absl::container nlohmann_json::nlohmann_json)
target_link_libraries_system(${UTIL_LIB} absl::synchronization absl::hash absl::container nlohmann_json::nlohmann_json ${CURL_LIB})
# cut back on fluff
if (NOT WIN32)

Loading…
Cancel
Save