mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-11 08:48:14 +00:00
Add possibility to enable autoupdate on non-special target
This commit is contained in:
parent
2ad48f18f2
commit
eac867ce85
Telegram
@ -1187,7 +1187,7 @@ endif()
|
||||
|
||||
set_target_properties(Telegram PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${output_folder})
|
||||
|
||||
if ((NOT disable_autoupdate OR NOT LINUX) AND NOT build_macstore AND NOT build_winstore)
|
||||
if ((NOT DESKTOP_APP_DISABLE_AUTOUPDATE OR NOT LINUX) AND NOT build_macstore AND NOT build_winstore)
|
||||
add_executable(Updater WIN32)
|
||||
init_target(Updater)
|
||||
|
||||
|
@ -56,7 +56,7 @@ else()
|
||||
target_link_libraries(Telegram PRIVATE desktop-app::lib_spellcheck)
|
||||
endif()
|
||||
|
||||
if (disable_autoupdate)
|
||||
if (DESKTOP_APP_DISABLE_AUTOUPDATE)
|
||||
target_compile_definitions(Telegram PRIVATE TDESKTOP_DISABLE_AUTOUPDATE)
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user