Add possibility to enable autoupdate on non-special target

This commit is contained in:
Ilya Fedin 2020-04-07 22:54:51 +04:00 committed by John Preston
parent 2ad48f18f2
commit eac867ce85
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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()