CMake: exclude BLI_args when building as a Python module
This commit is contained in:
parent
d92e14af1f
commit
146e67b2bd
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user