On Wed, Jan 25, 2017 at 15:45:33 +0000, Bøe, Sebastian wrote: > Not modifying the CMakeListst.txt is acceptable for this use-case. > > But not being able to share, or relocate, the build tree is a problem. > > Would support for relocatable build trees need major changes throughout > CMake, or is this primarily a property of the generator?
It'd need lots of changes. CMake generally uses absolute paths to the source tree and sometimes to the build tree (I forget the cases where it does, but that is somewhat generator-dependent). At least one is for the Makefiles generator where it embed absolute paths in its `cd` commands before running the compiler. It would likely not be trivial to get CMake to generate relocatable builds. --Ben -- 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-developers