CMake: restore WITH_DRACO, WITH_PYTHON_INSTALL dependency

This was removed in [0] but is only valid when building as a Python
module.

[0]: a0f653c002
This commit is contained in:
Campbell Barton
2024-09-23 12:44:25 +10:00
parent 3e6c816ad4
commit 99324277fa

View File

@@ -1231,6 +1231,13 @@ set_and_warn_dependency(WITH_PYTHON WITH_CYCLES OFF)
set_and_warn_dependency(WITH_PYTHON WITH_DRACO OFF)
set_and_warn_dependency(WITH_PYTHON WITH_MOD_FLUID OFF)
if(NOT WITH_PYTHON_MODULE)
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()
endif()
# enable boost for cycles, audaspace or i18n
# otherwise if the user disabled