diff options
author | Brad King <brad.king@kitware.com> | 2019-09-10 14:58:45 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-09-10 14:58:53 (GMT) |
commit | 054d626c9cca0facb372ba740b8a797d463141a3 (patch) | |
tree | c2c53b61ca1b74ee7e68a52f14751e2b8ba60fe7 /Source/cmLocalGenerator.cxx | |
parent | bbf48c494ad28d1c8ac5aa6e4cecb35c2cbf1b84 (diff) | |
parent | 5b96fd5b81bde4655e471a31bf0fc579c1d10136 (diff) | |
download | CMake-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.cxx | 3 |
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); |