diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-09-18 11:37:28 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-09-18 12:26:33 +0300 |
commit | 6bf5cc62e0901175d98506216932ec6ffd4506a5 (patch) | |
tree | 2df8efdf76a547a1a67ba799d514beb7a8c29d20 /source/blender/python | |
parent | 892a5f81761c260aec2a34240601cb27b37ff4b4 (diff) |
Build: limit Py_ENABLE_SHARED to modules using Python headers
And remove Python flags from nodes, no longer needed.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/python/CMakeLists.txt b/source/blender/python/CMakeLists.txt index 9f6ee359d67..f82499ba1d4 100644 --- a/source/blender/python/CMakeLists.txt +++ b/source/blender/python/CMakeLists.txt @@ -1,5 +1,9 @@ # SPDX-License-Identifier: GPL-2.0-or-later +if(WITH_PYTHON_MODULE) + add_definitions(-DPy_ENABLE_SHARED) +endif() + add_subdirectory(intern) add_subdirectory(generic) add_subdirectory(gpu) |