Partially revert "Get rid of /DELAYLOAD"

This partially reverts commit 6586791655.
This commit is contained in:
John Preston
2025-05-01 18:42:04 +04:00
parent 1263a5bfc0
commit 26337a6bd4
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -1919,6 +1919,17 @@ endif()
set_target_properties(Telegram PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${output_folder})
if (MSVC)
target_link_libraries(Telegram
PRIVATE
delayimp
)
target_link_options(Telegram
PRIVATE
/DELAYLOAD:advapi32.dll
)
endif()
target_prepare_qrc(Telegram)
if (NOT DESKTOP_APP_DISABLE_AUTOUPDATE AND NOT build_macstore AND NOT build_winstore)