[0.4.11][WINHTTP] Fix 1 MSVC2010SP1 x86 dbg warning LNK4199 (#4414) CORE-18104
authorJoachim Henze <Joachim.Henze@reactos.org>
Mon, 19 Sep 2022 22:21:18 +0000 (00:21 +0200)
committerJoachim Henze <Joachim.Henze@reactos.org>
Mon, 19 Sep 2022 22:21:18 +0000 (00:21 +0200)
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

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

Fix picked from 0.4.15-dev-4326-g 2f7dc168f29c0693203cc10901cb6dc4bb23ea75

And just for the record: Wine did the same with their:
https://source.winehq.org/git/wine.git/commitdiff/f400f25c2516654f85e0246a4815a2bf62a73cfd

dll/win32/winhttp/CMakeLists.txt

index f0c4df8..b4eff44 100644 (file)
@@ -26,7 +26,7 @@ add_library(winhttp SHARED
 
 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 msvcrt kernel32 ntdll)
 add_dependencies(winhttp stdole2)
 add_pch(winhttp winhttp_private.h SOURCE)