Skip to content

Commit f82a8a5

Browse files
authored
Add Crypt32.lib to static builds on Windows. (#1574)
The latest vcpkg updates added Crypt32.lib as a dependency to libcurl. It should be harmless to add this for older versions, so we simply add it always. This fixes the broken builds on Windows.
1 parent a2927e7 commit f82a8a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/storage/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ target_link_libraries(storage_client
240240
ZLIB::ZLIB
241241
PRIVATE storage_common_options)
242242
if (WIN32)
243-
target_link_libraries(storage_client PUBLIC wsock32 ws2_32)
243+
target_link_libraries(storage_client PUBLIC crypt32 wsock32 ws2_32)
244244
endif ()
245245
target_include_directories(storage_client
246246
PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>

0 commit comments

Comments
 (0)