cmake 3.2.3 ninja 1.6.0 Reproducible: Always Steps to Reproduce: * Enable ninja builds in kdesrc-buildrc custom-build-command ninja cmake-options [...] -GNinja * Try to build a module which generated a policy file. Eg sddm-kcm ./kdesrc-build --debug sddm-kcm Actual Results: Build fails with error: # kdesrc-build running: '/usr/bin/ninja' 'install' # from directory: /run/media/sdh/sdh-hdd3/dev/build/kde/sddm-kcm ninja: warning: multiple rules generate org.kde.kcontrol.kcmsddm.policy. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn] [1/3] Automatic moc for target kcmsddm_authhelper [2/3] Automatic moc for target kcm_sddm [3/3] Install the project... -- Install configuration: "debug" -- Up-to-date: /opt/kde5/share/kservices5/kcm_sddm.desktop CMake Error at cmake_install.cmake:48 (file): file INSTALL cannot find "/run/media/sdh/sdh-hdd3/dev/build/kde/sddm-kcm/org.kde.kcontrol.kcmsddm.policy". Expected Results: Build should succeed. "multiple rules generate org.kde.kcontrol.kcmsddm.policy." seems to be the issue. Same build succeeds with normal make.