diff --git a/CMakeLists.txt b/CMakeLists.txt index ea5b786a688..8cff6de7c9b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1197,11 +1197,6 @@ 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(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 diff --git a/build_files/cmake/config/bpy_module.cmake b/build_files/cmake/config/bpy_module.cmake index 51f02af66ac..5b046acaab7 100644 --- a/build_files/cmake/config/bpy_module.cmake +++ b/build_files/cmake/config/bpy_module.cmake @@ -29,9 +29,6 @@ set(WITH_PYTHON_MODULE ON CACHE BOOL "" FORCE) # There is no point in copying python into Python. set(WITH_PYTHON_INSTALL OFF CACHE BOOL "" FORCE) -# Depends on Python install, do this to quiet warning. -set(WITH_DRACO OFF CACHE BOOL "" FORCE) - if(WIN32) set(WITH_WINDOWS_BUNDLE_CRT OFF CACHE BOOL "" FORCE) endif() diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index 787f0673a9b..370abf64d1a 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -964,10 +964,17 @@ file(REMOVE ${CMAKE_BINARY_DIR}/bin/lib/libglapi.so.0.0.0)\n endif() if(WITH_DRACO) - install( - PROGRAMS $ - DESTINATION ${TARGETDIR_VER}/python/lib/python${PYTHON_VERSION}/site-packages - ) + if(WITH_PYTHON_MODULE) + install( + PROGRAMS $ + DESTINATION ${CMAKE_BINARY_DIR}/bin/bpy/lib + ) + else() + install( + PROGRAMS $ + DESTINATION ${TARGETDIR_VER}/python/lib/python${PYTHON_VERSION}/site-packages + ) + endif() endif() elseif(WIN32) if(WITH_WINDOWS_EXTERNAL_MANIFEST) @@ -1491,10 +1498,17 @@ elseif(WIN32) endif() if(WITH_DRACO) - install( - PROGRAMS $ - DESTINATION ${TARGETDIR_VER}/python/lib/site-packages - ) + if(WITH_PYTHON_MODULE) + install( + PROGRAMS $ + DESTINATION ${CMAKE_BINARY_DIR}/bin/bpy/lib + ) + else() + install( + PROGRAMS $ + DESTINATION ${TARGETDIR_VER}/python/lib/python${PYTHON_VERSION}/site-packages + ) + endif() endif() if(WITH_PYTHON_MODULE AND TARGETDIR_BPY) @@ -1614,10 +1628,17 @@ elseif(APPLE) endif() if(WITH_DRACO) - install( - PROGRAMS $ - DESTINATION ${TARGETDIR_VER}/python/lib/python${PYTHON_VERSION}/site-packages - ) + if(WITH_PYTHON_MODULE) + install( + PROGRAMS $ + DESTINATION ${CMAKE_BINARY_DIR}/bin/bpy/lib + ) + else() + install( + PROGRAMS $ + DESTINATION ${TARGETDIR_VER}/python/lib/python${PYTHON_VERSION}/site-packages + ) + endif() endif() endif()