By default, make KDE_INSTALL_USE_QT_SYS_PATHS share the same directory scheme as Qt if they share the prefix
Review Request #127169 - Created Feb. 24, 2016 and submitted
|Aleix Pol Gonzalez|
Make Qt and ECM-based projects use the same directory sctructure (i.e. where plugins are, libs, etc.) by default. Otherwise it creates a tiny mess that might be controlled but usually won't.
In the end, otherwise, people need to keep adapting their systems with environment variables anyway. All distros end up setting always this setting as ON, as well as brave developers who don't have separate prefixes for Qt and KDE.
I'm not familiar with the 'tiny mess'. Can you say what it is? I would expect the libs go in the same place, but maybe the plugins are affected by this? Can you be more specific?
Looks like I totally misunderstood this change. It only changes the default if the project's
CMAKE_INSTALL_PREFIXis the same as the prefix where Qt is installed, and in that case it does make sense to change the subpaths, since it won't put anything outside the given prefix. If Qt is in a different location (eg. self-built project in
~/local, system Qt in
/usr), nothing changes.
I was concerned because I have seen other projects always try to install stuff in eg.
/etc, even if
CMAKE_INSTALL_PREFIXis somewhere in
$HOME, because some system daemon expects its config there. But that's not the case here :)
Nicolás: if the prefixes are different, then this patch doesn't change anything (since it compares the prefixes). So it makes sense to me.
Adopt the Qt plugins dir when installing into the same prefix as Qt, keep default paths otherwise.
Status: Closed (submitted)
Submitted with commit a2d184bb89eaee3dc5e5b12ff6dfd4297bfcd5fb by Aleix Pol to branch master.