[Bf-blender-cvs] [146e67b2bde] master: CMake: exclude BLI_args when building as a Python module

Campbell Barton noreply at git.blender.org
Tue Sep 13 10:03:54 CEST 2022


Commit: 146e67b2bde8edd2b53ec5d0a9a30fa4046b5724
Author: Campbell Barton
Date:   Tue Sep 13 18:03:29 2022 +1000
Branches: master
https://developer.blender.org/rB146e67b2bde8edd2b53ec5d0a9a30fa4046b5724

CMake: exclude BLI_args when building as a Python module

===================================================================

M	source/blender/blenlib/CMakeLists.txt

===================================================================

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()



More information about the Bf-blender-cvs mailing list