summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCopier.cxx
diff options
context:
space:
mode:
authorJohn Parent <john.parent@kitware.com>2022-09-22 16:54:22 (GMT)
committerBrad King <brad.king@kitware.com>2022-10-06 19:10:23 (GMT)
commit569fb1893e6d49677e3724b82e578b568aaa1504 (patch)
tree3914d6bceb205707b83adc87bdc122eb0b1361b7 /Source/cmFileCopier.cxx
parent1461ae49330595b7e7d59e793107dd809bb56720 (diff)
downloadCMake-569fb1893e6d49677e3724b82e578b568aaa1504.zip
CMake-569fb1893e6d49677e3724b82e578b568aaa1504.tar.gz
CMake-569fb1893e6d49677e3724b82e578b568aaa1504.tar.bz2
file(INSTALL): Report "Installing:" for a symlink to a directory
Diffstat (limited to 'Source/cmFileCopier.cxx')
-rw-r--r--Source/cmFileCopier.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmFileCopier.cxx b/Source/cmFileCopier.cxx
index 70e6089..ef55abf 100644
--- a/Source/cmFileCopier.cxx
+++ b/Source/cmFileCopier.cxx
@@ -647,7 +647,10 @@ bool cmFileCopier::InstallDirectory(const std::string& source,
{
// Inform the user about this directory installation.
this->ReportCopy(destination, TypeDir,
- !cmSystemTools::FileIsDirectory(destination));
+ !( // Report "Up-to-date:" for existing directories,
+ // but not symlinks to them.
+ cmSystemTools::FileIsDirectory(destination) &&
+ !cmSystemTools::FileIsSymlink(destination)));
// check if default dir creation permissions were set
mode_t default_dir_mode_v = 0;