Only link curl if we set up a curl target

Should fix win32 (which doesn't link to curl).
pull/1275/head
Jason Rhinelander 4 years ago
parent 759c0e6f31
commit 856cf82c0e

@ -37,13 +37,15 @@ target_include_directories(lokinet-util PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${PRO
target_link_libraries(lokinet-util PUBLIC
lokinet-cryptography
curl
nlohmann_json::nlohmann_json
filesystem
date::date
)
if(TARGET libcurl_external)
add_dependencies(lokinet-util libcurl_external)
if(TARGET curl)
target_link_libraries(lokinet-util PUBLIC curl)
if(TARGET libcurl_external)
add_dependencies(lokinet-util libcurl_external)
endif()
endif()
if(ANDROID)

Loading…
Cancel
Save