Hello all, Please review the topic install_CMAKE_INSTALL_RELATIVE.
install: Add CMAKE_INSTALL_RELATIVE variable http://www.cmake.org/gitweb?p=stage/cmake.git;a=commitdiff;h=3b57fa0 This patch adds a a variable CMAKE_INSTALL_RELATIVE to install files in CMAKE_INSTALL_PREFIX using relative path, even if an absolute path was passed to the install() command. This might be useful in some cases to create binary packages. For example, CPack will refuse to create a relocatable package if files are installed using absolute paths, even if inside the prefix. In my experience, I found that many projects install files using absolute paths, even when they should be installed using a path relative to the CMAKE_INSTALL_PREFIX. This makes it impossible to package them using CPack without large modification of the cmake code. Moreover it makes it hard to install only one component in a different prefix, for example using: cmake -DCMAKE_PREFIX_PATH=/new/prefix -DCOMPONENT=foo \ -P cmake_install.cmake (You can probably use DESTDIR, calculating the relative path between the original prefix and the new prefix, but I believe that's not the best way to do it) Since the usage of absolute path instead of relative is in most of the cases just a an unwanted effect, I believe that using this variable, could simplify this kind of tasks. What do you think? Cheers, Daniele -- 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