diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-28 10:20:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-28 10:20:47 +0400 |
commit | 11305bd688fa7306d9d2c9eac2525df35ed31196 (patch) | |
tree | c792a28d9cb23b350955c9071d79abe71a4aaa8d /source/blender/windowmanager/CMakeLists.txt | |
parent | 7a2d6482e3971d669427697a8cd9fe0b1563bb83 (diff) |
CMake build option for security report: CVE-2009-3850
Nothing is changed by default but some linux distributions want to have executing python be opt-in.
This keeps the same functionality but disables auto-run from factory settings and in background mode unless its enabled as a command line argument.
This CMake option is marked as advanced and wont show in the regular options list so its less likely to be enabled by people that like to turn everything ON without reading descriptions :)
Diffstat (limited to 'source/blender/windowmanager/CMakeLists.txt')
-rw-r--r-- | source/blender/windowmanager/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/CMakeLists.txt b/source/blender/windowmanager/CMakeLists.txt index db0815efa53..1a056b56eff 100644 --- a/source/blender/windowmanager/CMakeLists.txt +++ b/source/blender/windowmanager/CMakeLists.txt @@ -98,6 +98,10 @@ endif() if(WITH_PYTHON) list(APPEND INC ../python ${PYTHON_INCLUDE_DIRS}) add_definitions(-DWITH_PYTHON) + + if(WITH_PYTHON_SECURITY) + add_definitions(-DWITH_PYTHON_SECURITY) + endif() endif() if(WITH_GAMEENGINE) |