diff options
author | Brad King <brad.king@kitware.com> | 2020-04-22 12:30:44 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-04-22 12:30:53 (GMT) |
commit | fb5d24fa3ca5061bbae9e68a6e27636e7366a271 (patch) | |
tree | f07467efdb93ad2542b7f47496d4b57784bc22c8 /Source/CPack/cmCPackGenerator.cxx | |
parent | 8a8ebcdd707394981c9e70bf463ca7b1a7b36aac (diff) | |
parent | bcc5cd44ed083dbcc71692146e9d2aa3d5ba6e59 (diff) | |
download | CMake-fb5d24fa3ca5061bbae9e68a6e27636e7366a271.zip CMake-fb5d24fa3ca5061bbae9e68a6e27636e7366a271.tar.gz CMake-fb5d24fa3ca5061bbae9e68a6e27636e7366a271.tar.bz2 |
Merge topic 'cpack-symlinks'
bcc5cd44ed CPack: Do not recurse through directory symlinks
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4637
Diffstat (limited to 'Source/CPack/cmCPackGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackGenerator.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx index 43f0d3c..08fd2a2 100644 --- a/Source/CPack/cmCPackGenerator.cxx +++ b/Source/CPack/cmCPackGenerator.cxx @@ -354,6 +354,7 @@ int cmCPackGenerator::InstallProjectViaInstalledDirectories( "- Install directory: " << top << std::endl); gl.RecurseOn(); gl.SetRecurseListDirs(true); + gl.SetRecurseThroughSymlinks(false); if (!gl.FindFiles(findExpr)) { cmCPackLogger(cmCPackLog::LOG_ERROR, "Cannot find any files in the installed directory" @@ -862,6 +863,7 @@ int cmCPackGenerator::InstallCMakeProject( findExpr += "/*"; glB.RecurseOn(); glB.SetRecurseListDirs(true); + glB.SetRecurseThroughSymlinks(false); glB.FindFiles(findExpr); filesBefore = glB.GetFiles(); std::sort(filesBefore.begin(), filesBefore.end()); |