diff options
author | John Parent <john.parent@kitware.com> | 2022-09-22 16:54:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-10-06 19:10:23 (GMT) |
commit | 569fb1893e6d49677e3724b82e578b568aaa1504 (patch) | |
tree | 3914d6bceb205707b83adc87bdc122eb0b1361b7 /Source/cmFileCopier.cxx | |
parent | 1461ae49330595b7e7d59e793107dd809bb56720 (diff) | |
download | CMake-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.cxx | 5 |
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; |