From 3f76f5164bb9578409bac543a1b1459c0c44264e Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 20 Nov 2020 18:15:25 -0800 Subject: [PATCH] Replace release mode conditional with OFFICIAL_BUILD There are probably going to be situations where we'll want to compile in release mode, but still want the hash and don't want Steam/GOG enabled. So Ethan can use OFFICIAL_BUILD when tagging major versions of the game. --- desktop_version/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop_version/CMakeLists.txt b/desktop_version/CMakeLists.txt index 54801bd1..5ab9c707 100644 --- a/desktop_version/CMakeLists.txt +++ b/desktop_version/CMakeLists.txt @@ -13,7 +13,9 @@ SET_PROPERTY(CACHE CUSTOM_LEVEL_SUPPORT PROPERTY STRINGS ENABLED NO_EDITOR DISAB SET(STEAM OFF CACHE BOOL "Use the Steam API") SET(GOG OFF CACHE BOOL "Use the GOG API") -IF(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo" OR CMAKE_BUILD_TYPE STREQUAL "MinSizeRel") +SET(OFFICIAL_BUILD OFF CACHE BOOL "Compile an official build of the game") + +IF(OFFICIAL_BUILD) SET(STEAM ON) SET(GOG ON) ELSE()