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