Skip to content

Commit

Permalink
Fix libcurl linkage on Windows
Browse files Browse the repository at this point in the history
(cherry picked from commit abaffbc)

# Conflicts:
#	samples/CMakeLists.txt
#	src/CMakeLists.txt
  • Loading branch information
kmilos committed Jun 10, 2024
1 parent c4758ed commit 3e7c387
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 @@ -107,8 +107,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 @@ -205,8 +205,7 @@ target_include_directories(exiv2lib_int PUBLIC

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 3e7c387

Please sign in to comment.