diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-13 11:03:29 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-13 11:03:29 +0300 |
commit | 146e67b2bde8edd2b53ec5d0a9a30fa4046b5724 (patch) | |
tree | 726fa24b8eafcfde7730b9a35f3696127822b855 | |
parent | d92e14af1f73800c9afdce6ecc79cf0346c87bef (diff) |
CMake: exclude BLI_args when building as a Python module
-rw-r--r-- | source/blender/blenlib/CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/blenlib/CMakeLists.txt b/source/blender/blenlib/CMakeLists.txt index 4cd222165be..4a635e34205 100644 --- a/source/blender/blenlib/CMakeLists.txt +++ b/source/blender/blenlib/CMakeLists.txt @@ -23,7 +23,6 @@ set(INC_SYS ) set(SRC - intern/BLI_args.c intern/BLI_array.c intern/BLI_assert.c intern/BLI_color.cc @@ -160,7 +159,6 @@ set(SRC BLI_alloca.h BLI_allocator.hh BLI_any.hh - BLI_args.h BLI_array.h BLI_array.hh BLI_array_store.h @@ -355,6 +353,14 @@ set(LIB ${ZSTD_LIBRARIES} ) +if(NOT WITH_PYTHON_MODULE) + list(APPEND SRC + intern/BLI_args.c + + BLI_args.h + ) +endif() + if(WITH_MEM_VALGRIND) add_definitions(-DWITH_MEM_VALGRIND) endif() |