We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35b8f40 commit 5c61f0eCopy full SHA for 5c61f0e
1 file changed
lib/CMakeLists.txt
@@ -164,6 +164,12 @@ if (LINK_STATIC AND BUILD_STATIC_LIB)
164
list(APPEND _vcpkg_static_libs "${_rlib}")
165
endif ()
166
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)
173
set_property(TARGET pulsarStaticWithDeps PROPERTY STATIC_LIBRARY_OPTIONS ${_vcpkg_static_libs})
174
else ()
175
# Non-vcpkg MSVC static build: resolve COMMON_LIBS entries for lib.exe.
0 commit comments