diff options
author | Brad King <brad.king@kitware.com> | 2021-04-14 16:15:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-04-14 17:14:09 (GMT) |
commit | ec1b6157cbfefdcac5c971021a5700dd80318a09 (patch) | |
tree | cf77e28ebb95ce81ec4fa7b91c674bfe62b378cd /Source/cmcmd.cxx | |
parent | eef585efaa49d546a9af2939a147c971c76de03e (diff) | |
download | CMake-ec1b6157cbfefdcac5c971021a5700dd80318a09.zip CMake-ec1b6157cbfefdcac5c971021a5700dd80318a09.tar.gz CMake-ec1b6157cbfefdcac5c971021a5700dd80318a09.tar.bz2 |
Update CMake code using KWSys to account for Status return values
KWSys as of 2021-04-14 changed the return type of `SystemTools`
operations from `bool` to `Status`. Update our call sites.
This may improve error reporting accuracy in a few places.
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r-- | Source/cmcmd.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index 9ba4b93..a47eccd 100644 --- a/Source/cmcmd.cxx +++ b/Source/cmcmd.cxx @@ -1635,7 +1635,7 @@ bool cmcmd::SymlinkInternal(std::string const& file, std::string const& link) cmSystemTools::RemoveFile(link); } #if defined(_WIN32) && !defined(__CYGWIN__) - return cmSystemTools::CopyFileAlways(file, link); + return static_cast<bool>(cmSystemTools::CopyFileAlways(file, link)); #else std::string linktext = cmSystemTools::GetFilenameName(file); return cmSystemTools::CreateSymlink(linktext, link); |