diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e9b5e0c8e..6dc2f52b4c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -646,7 +646,7 @@ if (HAVE_LIBCAP) COMMAND ${SETCAP_EXECUTABLE} CAP_SYS_NICE=+ep - ${CMAKE_INSTALL_FULL_BINDIR}/kwin_wayland)" + $ENV{DESTDIR}${CMAKE_INSTALL_FULL_BINDIR}/kwin_wayland)" ) endif()