Commit d78bdb27 authored by Johan Björk's avatar Johan Björk Committed by David Cole
Browse files

CMake: Write symlinks to directories as files in archives (#12284)

Do not recurse through directory symlinks when adding files.

Recursing through directory symlinks will generate broken archives,
i.e., they will look something like this:
  foo -> bar/bar
  foo/Info <- Shouldn't be in archive.
  bar/bar
  bar/bar/Info
parent 527a40f0
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment