From 6bf5cc62e0901175d98506216932ec6ffd4506a5 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 18 Sep 2022 10:37:28 +0200 Subject: Build: limit Py_ENABLE_SHARED to modules using Python headers And remove Python flags from nodes, no longer needed. --- source/blender/freestyle/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/freestyle') diff --git a/source/blender/freestyle/CMakeLists.txt b/source/blender/freestyle/CMakeLists.txt index 40db98ebd74..8f9e493023c 100644 --- a/source/blender/freestyle/CMakeLists.txt +++ b/source/blender/freestyle/CMakeLists.txt @@ -561,6 +561,10 @@ set(INC_SYS add_definitions(-DWITH_FREESTYLE) +if(WITH_PYTHON_MODULE) + add_definitions(-DPy_ENABLE_SHARED) +endif() + if(WITH_PYTHON_SAFETY) # For bpy_rna.h access. add_definitions(-DWITH_PYTHON_SAFETY) -- cgit v1.2.3