Skip to content

Commit abaffbc

Browse files
committed
Fix libcurl linkage on Windows
1 parent e80186c commit abaffbc

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

samples/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ if(EXIV2_ENABLE_WEBREADY)
9696
add_executable(conntest conntest.cpp)
9797
list(APPEND APPLICATIONS conntest)
9898
if(EXIV2_ENABLE_CURL)
99-
target_include_directories(conntest SYSTEM PRIVATE ${CURL_INCLUDE_DIR})
100-
target_link_libraries(conntest PRIVATE ${CURL_LIBRARIES})
99+
target_link_libraries(conntest PRIVATE CURL::libcurl)
101100
endif()
102101
endif()
103102

src/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@ target_include_directories(exiv2lib_int PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURC
227227

228228
if(EXIV2_ENABLE_WEBREADY)
229229
if(EXIV2_ENABLE_CURL)
230-
target_include_directories(exiv2lib SYSTEM PRIVATE ${CURL_INCLUDE_DIR})
231-
target_link_libraries(exiv2lib PRIVATE ${CURL_LIBRARIES})
230+
target_link_libraries(exiv2lib PRIVATE CURL::libcurl)
232231
list(APPEND requires_private_list "libcurl")
233232
endif()
234233
endif()

0 commit comments

Comments
 (0)