CMake build option for security report: CVE-2009-3850
[blender-staging.git] / source / blender / blenkernel / CMakeLists.txt
index 47d393559f4319d94377869d3ef017bb1524a4ba..0b616f81ef33dec1c7bedfb2c2c0acc2bbcb1cfd 100644 (file)
@@ -282,6 +282,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_OPENMP)