1
0
Fork 0

Add a check for DESKTOP_APP_DISABLE_AUTOUPDATE in external_auto_updates

Like that done for external_crash_reports
This commit is contained in:
Ilya Fedin 2021-09-07 22:34:23 +04:00 committed by John Preston
parent 95ee188c7b
commit 98c52815e9
2 changed files with 15 additions and 12 deletions

View file

@ -7,16 +7,18 @@
add_library(external_auto_updates INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_auto_updates ALIAS external_auto_updates)
if (WIN32 AND NOT DESKTOP_APP_USE_PACKAGED)
if (NOT DESKTOP_APP_DISABLE_AUTOUPDATE)
if (WIN32 AND NOT DESKTOP_APP_USE_PACKAGED)
add_subdirectory(lzma)
target_link_libraries(external_auto_updates
INTERFACE
desktop-app::external_lzma
)
else()
else()
add_subdirectory(xz)
target_link_libraries(external_auto_updates
INTERFACE
desktop-app::external_xz
)
endif()
endif()

View file

@ -64,6 +64,7 @@ else()
if (LINUX)
target_link_static_libraries(external_ffmpeg
INTERFACE
lzma
va-x11
va-drm
va