<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 22, 2014 at 1:25 PM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 12/22/2014 03:28 PM, Domen Vrankar wrote:<br>
> Maybe others will disagree but to be quite honest I myself don't think<br>
> that CMAKE_INSTALL_RELATIVE variable would be the right solution... I<br>
> myself prefer to write install commands with relative paths and I<br>
> guess that something like that should be fixed in CMakeLists.txt and<br>
> contributed to projects that use absolute paths and not add a new<br>
> variable for doing this...<br>
<br>
</span>I agree.  If a project uses absolute install paths that means its<br>
authors have not thought about making relocatable packages.  There<br>
could be many other problems with making such projects relocatable<br>
other than just install rules.<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>THere's not a problem with relative install paths; why were they passed as absolute?  Just apply a pre-filter on your side like if( matches ${destpath} ${cmake_install_prefix}  ) subst it out.  All paths are relative to start with; and seems like a corruption to have an abosolute path</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
-Brad<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake-developers" target="_blank">http://public.kitware.com/mailman/listinfo/cmake-developers</a><br>
</div></div></blockquote></div><br></div></div>