From 2396d7faa59c8e64c17b13ac19ef97854389afcc Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 12 Apr 2019 14:26:17 +0200 Subject: 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. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.3