Skip to content

Commit 5c61f0e

Browse files
committed
Add back missed system import libs
1 parent 35b8f40 commit 5c61f0e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,12 @@ if (LINK_STATIC AND BUILD_STATIC_LIB)
164164
list(APPEND _vcpkg_static_libs "${_rlib}")
165165
endif ()
166166
endforeach ()
167+
# Also merge Windows system DLL import libs so pulsarWithDeps.lib is fully
168+
# self-contained. lib.exe carries the import records into the archive; the
169+
# final linker then resolves DLL deps without the user listing them.
170+
# lib.exe finds these by name via the LIB env var set up by MSBuild/MSVC.
171+
list(APPEND _vcpkg_static_libs
172+
ws2_32.lib crypt32.lib wldap32.lib Normaliz.lib iphlpapi.lib)
167173
set_property(TARGET pulsarStaticWithDeps PROPERTY STATIC_LIBRARY_OPTIONS ${_vcpkg_static_libs})
168174
else ()
169175
# Non-vcpkg MSVC static build: resolve COMMON_LIBS entries for lib.exe.

0 commit comments

Comments
 (0)