Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2019-04-12 15:26:17 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-04-12 15:29:17 +0300
commit2396d7faa59c8e64c17b13ac19ef97854389afcc (patch)
tree0543b6d88e4b21d325c652d9305570487e784dd1 /CMakeLists.txt
parentf3fc8271b81f7c23ba42356a95bbe487e1e339ae (diff)
Build system: disable Draco when not installing python.
Draco py binding needs to be installed somewhere, when not installing Python itself it's breaking the installation (since it creates a fake empty py install, which will crash when trying to start Blender). We could fix that in some smarter way maybe, but for now it's simpler to just not care about Draco when we are not installing Python.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7cec28f0e10..2f5b8240c88 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -640,6 +640,11 @@ if(NOT WITH_PYTHON)
set(WITH_DRACO OFF)
endif()
+if(WITH_DRACO AND NOT WITH_PYTHON_INSTALL)
+ message(STATUS "WITH_DRACO requires WITH_PYTHON_INSTALL to be ON, disabling WITH_DRACO for now")
+ set(WITH_DRACO OFF)
+endif()
+
# enable boost for cycles, audaspace or i18n
# otherwise if the user disabled
if(NOT WITH_BOOST)