<table><tr><td style="">omalsa created this revision.<br />omalsa added a reviewer: Marble.<br />Herald added projects: Marble, KDE Edu.<br />Herald added subscribers: kde-edu, marble-devel.<br />omalsa requested review of this revision.
</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/D25456">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The absolute path in INCLUDE_INSTALL_DIR eventually made it into the exported</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">MarbleTargets.cmake file in the INTERFACE_INCLUDE_DIRECTORIES target property.
There should be _no_ absolute paths in any outputs of install.
This bug causes the following use-case to fail:
- Make Install marble
- Move/deploy install directory to another location (e.g. deploy from Continuous Integration server)
- Link to Marble from new cmake project with find_package(Marble)
Because of this absolute path, the install directory cannot be moved after it is created.</pre></div></div></div><br /><div><strong>TEST PLAN</strong><div><p>This bug was found while trying to deploy Marble from our Continuous Integration server. To reproduce:</p>
<ol class="remarkup-list">
<li class="remarkup-list-item">Build and install marble</li>
<li class="remarkup-list-item">Move marble install to a different machine</li>
<li class="remarkup-list-item">Try to build a cmake project that depends on libMarble</li>
</ol>
<p>This will fail because the INTERFACE_INCLUDE_DIRECTORIES contained in the generated MarbleTarget.cmake file is not accessible.</p>
<p>Once my patch is applied then the above steps will work correctly.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R34 Marble</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25456">https://phabricator.kde.org/D25456</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt</div></div></div><br /><div><strong>To: </strong>omalsa, Marble<br /><strong>Cc: </strong>marble-devel, kde-edu, fbampaloukas, torhamzed, jalvarez, mnafees, shentey, chaz6, dkolozsvari, narvaez, cmihalache, rahn, apol, nienhueser<br /></div>