Skip to content

Commit

Permalink
Fix libcurl linkage on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilos committed Jun 10, 2024
1 parent e80186c commit abaffbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions samples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
3 changes: 1 addition & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ target_include_directories(exiv2lib_int PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURC

if(EXIV2_ENABLE_WEBREADY)
if(EXIV2_ENABLE_CURL)
target_include_directories(exiv2lib SYSTEM PRIVATE ${CURL_INCLUDE_DIR})
target_link_libraries(exiv2lib PRIVATE ${CURL_LIBRARIES})
target_link_libraries(exiv2lib PRIVATE CURL::libcurl)
list(APPEND requires_private_list "libcurl")
endif()
endif()
Expand Down

0 comments on commit abaffbc

Please sign in to comment.