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 $