CPack: Do not recurse through directory symlinks (#12284)

...when building CPack archive-based packages (.tar.gz and similar)

Rather, put the symlinks-to-directories into the archive as files,
and expect/trust that the things the symlinks point to are also in
the archive.
This commit is contained in:
Johan Björk 2011-08-27 19:34:37 +02:00 committed by David Cole
parent d78bdb2783
commit 7b8dcdd173
1 changed files with 1 additions and 0 deletions

View File

@ -1000,6 +1000,7 @@ int cmCPackGenerator::DoPackage()
std::string findExpr = tempDirectory;
findExpr += "/*";
gl.RecurseOn();
gl.SetRecurseThroughSymlinks(false);
if ( !gl.FindFiles(findExpr) )
{
cmCPackLogger(cmCPackLog::LOG_ERROR,