[WINHTTP] Fix 1 MSVC x86 warning LNK4199 (#4414) CORE-18104

Fixes
Creating library dll\win32\winhttp\winhttp.lib and object dll\win32\winhttp\winhttp.exp
LINK : warning LNK4199: /DELAYLOAD:ole32.dll ignored; no imports found from ole32.dll

which I could observe all the way from releases/0.4.7 up to releases/0.4.14
with MSVC 2010SP1 (16.0.40219.1) x86 target in dbg configuration
This commit is contained in:
Joachim Henze 2022-04-07 00:36:52 +02:00 committed by GitHub
parent a40f55bf6d
commit 2f7dc168f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ add_library(winhttp MODULE
set_module_type(winhttp win32dll)
target_link_libraries(winhttp uuid wine)
add_delay_importlibs(winhttp oleaut32 ole32 crypt32 secur32)
add_delay_importlibs(winhttp oleaut32 crypt32 secur32)
add_importlibs(winhttp user32 advapi32 ws2_32 jsproxy kernel32_vista msvcrt kernel32 ntdll)
add_dependencies(winhttp stdole2)
add_pch(winhttp precomp.h SOURCE)