summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-10 14:58:45 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-09-10 14:58:53 (GMT)
commit054d626c9cca0facb372ba740b8a797d463141a3 (patch)
treec2c53b61ca1b74ee7e68a52f14751e2b8ba60fe7 /Source/cmLocalGenerator.cxx
parentbbf48c494ad28d1c8ac5aa6e4cecb35c2cbf1b84 (diff)
parent5b96fd5b81bde4655e471a31bf0fc579c1d10136 (diff)
downloadCMake-054d626c9cca0facb372ba740b8a797d463141a3.zip
CMake-054d626c9cca0facb372ba740b8a797d463141a3.tar.gz
CMake-054d626c9cca0facb372ba740b8a797d463141a3.tar.bz2
Merge topic 'MoveIfDifferent'
5b96fd5b81 use cmSystemTools::MoveFileIfDifferent() 5eaf1e1be2 cmSystemTools: introduce MoveFileIfDifferent() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3794
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 5d831c9..8bb3bc1 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2281,8 +2281,7 @@ void cmLocalGenerator::AddUnityBuild(cmGeneratorTarget* target,
}
}
}
- cmSystemTools::CopyFileIfDifferent(filename_tmp, filename);
- cmSystemTools::RemoveFile(filename_tmp);
+ cmSystemTools::MoveFileIfDifferent(filename_tmp, filename);
target->AddSource(filename, true);