FindPolkitQt-1 and multiple prefixes

Yury G. Kudryashov urkud at ya.ru
Fri Aug 13 09:16:53 CEST 2010


Hi!

Current FindPolkitQt-1 ends with:
set(POLKITQT-1_POLICY_FILES_INSTALL_DIR 
${CMAKE_INSTALL_PREFIX}/share/polkit-1/actions)

Then kdelibs caches this value (to 
${kdelibs_install_prefix}/share/polkit-1/actions) and this cached value is 
used in other modules. As a result, if I want to install each module into a 
dedicated prefix (and then graft them), it tries to install polkit action 
files into kdelibs prefix.

I propose to replace this line with
set(POLKITQT-1_POLICY_FILES_INSTALL_DIR share/polkit-1/actions)

Then it will cache "share/polkit-1/actions" and install anything into the 
right prefix.



More information about the Kde-buildsystem mailing list