CMake: support building without Python

Resolve linking issues, warnings.
This commit is contained in:
Campbell Barton
2019-11-25 15:45:03 +11:00
parent b2d940250c
commit bb0708a483
9 changed files with 25 additions and 14 deletions

View File

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