Windows: Enable python debugging in Visual Studio.
[blender.git] / intern / cycles / CMakeLists.txt
index 9a09b1e6f1b51c8189446488582e5650630c786f..54d14f63cd2b43d94db912aaded320403d8d8101 100644 (file)
@@ -3,7 +3,14 @@ if(NOT WITH_BLENDER AND WITH_CYCLES_STANDALONE)
        set(CYCLES_INSTALL_PATH "")
 else()
        set(WITH_CYCLES_BLENDER ON)
-       set(CYCLES_INSTALL_PATH "scripts/addons/cycles")
+       # WINDOWS_PYTHON_DEBUG needs to write into the user addons folder since it will
+       # be started with --env-system-scripts pointing to the release folder, which will
+       # lack the cycles addon, and we don't want to write into it.
+       if(NOT WINDOWS_PYTHON_DEBUG)
+               set(CYCLES_INSTALL_PATH "scripts/addons/cycles")
+       else()
+               set(CYCLES_INSTALL_PATH "$ENV{appdata}/blender foundation/blender/${BLENDER_VERSION}/scripts/addons/cycles")
+       endif()
 endif()
 
 # External Libraries