2012/5/23 Clifford Yapp <cliffy...@gmail.com>: > The CPack tool provides a variable CMAKE_INCLUDE_TOPLEVEL_DIRECTORY > option to control whether to set a toplevel directory in (say) a > tar.gz archive, but so far I have not been able to figure out if there > is a way to change this directory name to something not directly based > on the file name. Trying to override CPACK_TOPLEVEL_DIRECTORY doesn't > seem to work.
CPACK_TOPLEVEL_DIRECTORY is internal to CPack thus Read-Only. > Is there any way to get a tar.gz archive named (say) > NEW_PROJECT-3.1.1.tar.gz that unpacks into a toplevel directory simply > called PROJECT? Theoretically yes, using the variable: CPACK_PACKAGE_INSTALL_DIRECTORY This works with NSIS, but not with archive generator: There are 2 bugs pending for that: http://public.kitware.com/Bug/view.php?id=12606 http://public.kitware.com/Bug/view.php?id=13019 Woud you be willing to resume the work of the patch proposed in (see my comments too): http://public.kitware.com/Bug/view.php?id=12606 -- Erk Le gouvernement représentatif n'est pas la démocratie -- http://www.le-message.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake