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.
This commit is contained in:
Misa 2020-11-20 18:15:25 -08:00 committed by Ethan Lee
parent ebe074e308
commit 3f76f5164b
1 changed files with 3 additions and 1 deletions

View File

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