CMake: Skip addons_contrib for release candidate builds
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 2 Sep 2016 12:42:01 +0000 (14:42 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 5 Sep 2016 08:14:07 +0000 (10:14 +0200)
Nowadays release candidates are supposed to be as close to the final
release as possible.

Safe for 2.78 release branch.

source/creator/CMakeLists.txt

index fc02dfda9d131bac1ab9a8827994418fa5969aa4..f65688e13049daef435cbef897e6d85f20dffcb9 100644 (file)
@@ -338,7 +338,8 @@ if(WITH_PYTHON)
        # install(CODE "message(\"copying blender scripts...\")")
        
        # exclude addons_contrib if release
-       if("${BLENDER_VERSION_CYCLE}" STREQUAL "release")
+       if("${BLENDER_VERSION_CYCLE}" STREQUAL "release" OR
+          "${BLENDER_VERSION_CYCLE}" STREQUAL "rc")
                set(ADDON_EXCLUDE_CONDITIONAL "addons_contrib/*")
        else()
                set(ADDON_EXCLUDE_CONDITIONAL "_addons_contrib/*")  # dummy, wont do anything