From 5f355690e068b3282715892c380af728c63dbd08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sat, 17 Apr 2021 19:45:43 +0200 Subject: [PATCH] Make it possible to enable auto-updates by default with CMake builds This adds a CMake option (DOLPHIN_DEFAULT_UPDATE_TRACK) to allow configuring SCM_UPDATE_TRACK_STR. This is needed to enable auto-updates in Windows CMake builds by default. --- CMakeLists.txt | 2 ++ Source/Core/Common/scmrev.h.in | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index df97554d3e..18ad5b4fb9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,8 @@ project(dolphin-emu) # unique name here. set(DISTRIBUTOR "None" CACHE STRING "Name of the distributor.") +set(DOLPHIN_DEFAULT_UPDATE_TRACK "" CACHE STRING "Name of the default update track. If empty, disables auto-update.") + if(UNIX AND NOT APPLE AND NOT ANDROID) option(ENABLE_X11 "Enables X11 Support" ON) endif() diff --git a/Source/Core/Common/scmrev.h.in b/Source/Core/Common/scmrev.h.in index df99e55f05..db0c4ae7ab 100644 --- a/Source/Core/Common/scmrev.h.in +++ b/Source/Core/Common/scmrev.h.in @@ -2,5 +2,5 @@ #define SCM_DESC_STR "${DOLPHIN_WC_DESCRIBE}" #define SCM_BRANCH_STR "${DOLPHIN_WC_BRANCH}" #define SCM_IS_MASTER ${DOLPHIN_WC_IS_STABLE} -#define SCM_DISTRIBUTOR_STR "${DISTRIBUTOR}" -#define SCM_UPDATE_TRACK_STR "" +#define SCM_DISTRIBUTOR_STR "${DISTRIBUTOR}" +#define SCM_UPDATE_TRACK_STR "${DOLPHIN_DEFAULT_UPDATE_TRACK}"