UI/updater: Add opt to disable building update module

Mostly to reduce build time when the update module doesn't need to be
rebuilt.
master
jp9000 2017-05-02 03:45:20 -07:00
parent 6fcb77e165
commit 4684294bcd
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,10 @@ if(NOT ENABLE_WIN_UPDATER)
return() return()
endif() endif()
if(DISABLE_UPDATE_MODULE)
return()
endif()
if(NOT DEFINED STATIC_ZLIB_PATH OR "${STATIC_ZLIB_PATH}" STREQUAL "") if(NOT DEFINED STATIC_ZLIB_PATH OR "${STATIC_ZLIB_PATH}" STREQUAL "")
message(STATUS "STATIC_ZLIB_PATH not set, windows updater disabled") message(STATUS "STATIC_ZLIB_PATH not set, windows updater disabled")
return() return()