summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-13 15:16:36 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-02-13 15:17:08 (GMT)
commit8914d4317a21a5673afbc72312559cc53e73eeec (patch)
treecb5609ef9ed6da7c4f819f089c266d994b6af4a3 /Source/CPack/cmCPackGenerator.cxx
parent264128469df1460c60099a3321b80cedcf8d2d26 (diff)
parent080a79ca4a0448043e0713b9b580c5f84b7330b3 (diff)
downloadCMake-8914d4317a21a5673afbc72312559cc53e73eeec.zip
CMake-8914d4317a21a5673afbc72312559cc53e73eeec.tar.gz
CMake-8914d4317a21a5673afbc72312559cc53e73eeec.tar.bz2
Merge topic 'systools-stdstring2'
080a79ca4a cmSystemTools: More methods accept `std::string` params Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2952
Diffstat (limited to 'Source/CPack/cmCPackGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackGenerator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx
index 2917763..fc34ef8 100644
--- a/Source/CPack/cmCPackGenerator.cxx
+++ b/Source/CPack/cmCPackGenerator.cxx
@@ -388,8 +388,7 @@ int cmCPackGenerator::InstallProjectViaInstalledDirectories(
}
/* If it is not a symlink then do a plain copy */
else if (!(cmSystemTools::CopyFileIfDifferent(inFile, filePath) &&
- cmSystemTools::CopyFileTime(inFile.c_str(),
- filePath.c_str()))) {
+ cmSystemTools::CopyFileTime(inFile, filePath))) {
cmCPackLogger(cmCPackLog::LOG_ERROR,
"Problem copying file: " << inFile << " -> "
<< filePath << std::endl);