From abaffbc7c0246d02cf4ce1286ff03aabc0ff1b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Komar=C4=8Devi=C4=87?= Date: Mon, 10 Jun 2024 16:13:30 +0200 Subject: [PATCH] Fix libcurl linkage on Windows --- samples/CMakeLists.txt | 3 +-- src/CMakeLists.txt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt index bc948a1ad1..d2a17ca550 100644 --- a/samples/CMakeLists.txt +++ b/samples/CMakeLists.txt @@ -96,8 +96,7 @@ if(EXIV2_ENABLE_WEBREADY) add_executable(conntest conntest.cpp) list(APPEND APPLICATIONS conntest) if(EXIV2_ENABLE_CURL) - target_include_directories(conntest SYSTEM PRIVATE ${CURL_INCLUDE_DIR}) - target_link_libraries(conntest PRIVATE ${CURL_LIBRARIES}) + target_link_libraries(conntest PRIVATE CURL::libcurl) endif() endif() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index eb8bfc438f..6b321bac94 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -227,8 +227,7 @@ target_include_directories(exiv2lib_int PUBLIC $