[cmake-developers] [Cmake-commits] CMake branch, next, updated. v2.8.2-585-g4ead671
Brad King
brad.king at kitware.com
Tue Aug 31 14:57:44 EDT 2010
On 08/28/2010 10:51 AM, Eric Noulard wrote:
> http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=013e0039eeb7e8bf213c3851161ce9a18f7b940d
> commit 013e0039eeb7e8bf213c3851161ce9a18f7b940d
> Author: Eric NOULARD <eric.noulard at gmail.com>
> AuthorDate: Sat Aug 28 16:50:06 2010 +0200
> Commit: Eric NOULARD <eric.noulard at gmail.com>
> CommitDate: Sat Aug 28 16:50:06 2010 +0200
>
> CPack handle symlinks in CPACK_INSTALLED_DIRECTORIES fix for bug5430
>
> The proposed solution is to avoid to CopyIfDifferent any links
> found in CPACK_INSTALLED_DIRECTORIES but memorize them instead
> then at the end of the processing for each dir do re-create the
> link in the installed tree.
> Current patch should work if the link are "local" to the directory.
This brings up another place for refactoring. It looks like the code
this patch modifies does the same thing that the file(COPY) and
file(INSTALL) commands do. In cmFileCommand.cxx there is a class
cmFileCopier and subclass cmFileInstaller used to implement those
commands. These could be factored out of this file and used in
CPack to install the directories into the package more robustly.
-Brad
More information about the cmake-developers
mailing list