Skip to content

Commit 26337a6

Browse files
committed
Partially revert "Get rid of /DELAYLOAD"
This partially reverts commit 6586791.
1 parent 1263a5b commit 26337a6

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Telegram/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1919,6 +1919,17 @@ endif()
19191919

19201920
set_target_properties(Telegram PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${output_folder})
19211921

1922+
if (MSVC)
1923+
target_link_libraries(Telegram
1924+
PRIVATE
1925+
delayimp
1926+
)
1927+
target_link_options(Telegram
1928+
PRIVATE
1929+
/DELAYLOAD:advapi32.dll
1930+
)
1931+
endif()
1932+
19221933
target_prepare_qrc(Telegram)
19231934

19241935
if (NOT DESKTOP_APP_DISABLE_AUTOUPDATE AND NOT build_macstore AND NOT build_winstore)

0 commit comments

Comments
 (0)