On 10/30/2015 1:48 PM, Attila Krasznahorkay wrote:
I'm a bit surprised about this answer.

Sure, build areas are not to be moved around. I completely agree. But
this is why we have the concept of installing releases. As long as
you configure your build correctly, you should be able to move around
your install directory. As the binaries by default will not have
absolute paths in them after installation. At least not to
"themselves".

(I am myself working these days on how to install larger projects
such that after installation, after moving the installed directories
around, including the directories that the build was done against,
the code would still work. It's not trivial to do, but it's not
impossible either. One just has to use $<INSTALL_INTERFACE:...> in a
clever way...)

Cheers,

Install trees should be relocatable (that is how cpack works). However, build trees are not.

-Bill
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to