--- apps/CMakeLists.txt.orig 2022-06-07 21:23:16.000000000 +0200 +++ apps/CMakeLists.txt 2022-06-07 21:25:05.000000000 +0200 @@ -42,5 +42,5 @@ IF(NOT DEFINED SETUP_PY_INSTALL_PREFIX) SET(SETUP_PY_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") ENDIF() - INSTALL(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install --prefix=\$ENV{DESTDIR}${SETUP_PY_INSTALL_PREFIX})") + INSTALL(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install --prefix=${SETUP_PY_INSTALL_PREFIX} --root=\$ENV{DESTDIR})") ENDIF(PYTHON)