summaryrefslogtreecommitdiffstats
path: root/Source/cmcmd.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2019-02-14 12:45:13 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2019-02-15 14:52:29 (GMT)
commitbd20cc29a20f087348e7724da2cbaf311626dc06 (patch)
treec7bd548a8444390a372c3bfb057804d11b3dae41 /Source/cmcmd.cxx
parent442cb77bf31c02f83c47167ef9842b7756029227 (diff)
downloadCMake-bd20cc29a20f087348e7724da2cbaf311626dc06.zip
CMake-bd20cc29a20f087348e7724da2cbaf311626dc06.tar.gz
CMake-bd20cc29a20f087348e7724da2cbaf311626dc06.tar.bz2
cmSystemTools: Remove redundant cmCopyFile() and Split()
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r--Source/cmcmd.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx
index 4415ba6..21802ad 100644
--- a/Source/cmcmd.cxx
+++ b/Source/cmcmd.cxx
@@ -482,7 +482,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args)
// If error occurs we want to continue copying next files.
bool return_value = false;
for (std::string::size_type cc = 2; cc < args.size() - 1; cc++) {
- if (!cmSystemTools::cmCopyFile(args[cc], args.back())) {
+ if (!cmsys::SystemTools::CopyFileAlways(args[cc], args.back())) {
std::cerr << "Error copying file \"" << args[cc] << "\" to \""
<< args.back() << "\".\n";
return_value = true;