Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dalai@blender.org>2021-11-26 11:33:47 +0300
committerDalai Felinto <dalai@blender.org>2021-11-26 15:05:37 +0300
commitb066d5821607091bb86e0fcb2dbbd3e1067ca4d2 (patch)
treed0b429e802fc4f786ed7e3da8987ef5c0986f091 /CMakeLists.txt
parent236be8e9f1c92fe47fee9af72dad752f3a5452ee (diff)
CMake mini-rewrite: Sync code check with BKE_blender_version_is_alpha
Reproduce the logic we already do in C (BKE_blender_version_is_alpha) and the CMake file. Otherwise it can get out of sync if we add/rename the non-alpha release cycles. No functional change. Differential Revision: https://developer.blender.org/D13379
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 3 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c8ba8e2c080..d0bed1362d0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -501,12 +501,10 @@ if(WIN32)
endif()
# This should be turned off when Blender enter beta/rc/release
-if("${BLENDER_VERSION_CYCLE}" STREQUAL "release" OR
- "${BLENDER_VERSION_CYCLE}" STREQUAL "rc" OR
- "${BLENDER_VERSION_CYCLE}" STREQUAL "beta")
- set(WITH_EXPERIMENTAL_FEATURES OFF)
-else()
+if("${BLENDER_VERSION_CYCLE}" STREQUAL "alpha")
set(WITH_EXPERIMENTAL_FEATURES ON)
+else()
+ set(WITH_EXPERIMENTAL_FEATURES OFF)
endif()
# Unit testsing