CMake: support building without Python
Resolve linking issues, warnings.
This commit is contained in:
@@ -38,18 +38,15 @@ blender_include_dirs(
|
||||
)
|
||||
|
||||
set(LIB
|
||||
bf_blenloader
|
||||
bf_blenkernel
|
||||
bf_blenlib
|
||||
bf_blenloader
|
||||
bf_depsgraph
|
||||
bf_dna
|
||||
bf_editor_datafiles
|
||||
bf_imbuf
|
||||
bf_intern_clog
|
||||
bf_intern_guardedalloc
|
||||
bf_intern_memutil
|
||||
bf_intern_opencolorio
|
||||
bf_python
|
||||
bf_render
|
||||
bf_rna
|
||||
bf_windowmanager
|
||||
@@ -89,6 +86,9 @@ endif()
|
||||
|
||||
if(WITH_PYTHON)
|
||||
blender_include_dirs(../blender/python)
|
||||
list(APPEND LIB
|
||||
bf_python
|
||||
)
|
||||
add_definitions(-DWITH_PYTHON)
|
||||
|
||||
if(WITH_PYTHON_SECURITY)
|
||||
|
Reference in New Issue
Block a user