<table><tr><td style="">pwojcik retitled this revision from "Set SYSCONFDIR to /etc when CMAKE_INSTALL_PREFIX is /usr AND " to "Set SYSCONFDIR to /etc when CMAKE_INSTALL_SYSCONFDIR is etc relative to /usr".<br />pwojcik edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-l462f3yrkfvrcvw/">(Show Details)</a><br />pwojcik added reviewers: kossebau, alexmerry.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D26245">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Marble built with -DCMAKE_INSTALL_PREFIX=/usr installs its data into /usr/etc/xdg/marble.knsrc, what is wrong.<br />
This is because KDEInstallDirs do not handle special case of CMAKE_INSTALL_SYSCONFDIR=etc with CMAKE_INSTALL_PREFIX=/usr.<br />
I am not sure where CMAKE_INSTALL_SYSCONFDIR is set, but certainly not from commandline. Probably from GNUInstallDirs.<br />
GNUInstallDirs already handle special cases: let's use it.<br />
<br />
This change complements https://cgit.kde.org/extra-cmake-modules.git/commit/?id=e92da33 and make behavior as documented, i.e. :<br />
<br />
SYSCONFDIR<br />
read-only single-machine data (etc, or /etc if CMAKE_INSTALL_PREFIX is /usr) </span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R240 Extra CMake Modules</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26245">https://phabricator.kde.org/D26245</a></div></div><br /><div><strong>To: </strong>pwojcik, kossebau, alexmerry<br /><strong>Cc: </strong>kde-frameworks-devel, kde-buildsystem, LeGast00n, GB_2, bencreasy, michaelh, ngraham, bruns<br /></div>