CMake: Only set CMAKE_BUILD_TYPE_INIT when not set
[blender.git] / GNUmakefile
index 86964e68873e08789c7294bff68d122a53433560..ba7f89c3097317b5f3a06be36323748fca941872 100644 (file)
@@ -104,7 +104,7 @@ endif
 CMAKE_CONFIG = cmake $(BUILD_CMAKE_ARGS) \
                      -H"$(BLENDER_DIR)" \
                      -B"$(BUILD_DIR)" \
-                     -DCMAKE_BUILD_TYPE:STRING=$(BUILD_TYPE)
+                     -DCMAKE_BUILD_TYPE_INIT:STRING=$(BUILD_TYPE)
 
 
 # -----------------------------------------------------------------------------