Merge topic 'fix-12284-cpack-symlinks'
7b8dcdd
CPack: Do not recurse through directory symlinks (#12284)d78bdb2
CMake: Write symlinks to directories as files in archives (#12284)
This commit is contained in:
commit
1a5c99581e
|
@ -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,
|
||||
|
|
|
@ -180,7 +180,8 @@ bool cmArchiveWrite::AddPath(const char* path,
|
|||
{
|
||||
return false;
|
||||
}
|
||||
if(!cmSystemTools::FileIsDirectory(path))
|
||||
if(!cmSystemTools::FileIsDirectory(path) ||
|
||||
cmSystemTools::FileIsSymlink(path))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue