summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackGenerator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2019-02-11 23:11:59 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2019-02-11 23:11:59 (GMT)
commit080a79ca4a0448043e0713b9b580c5f84b7330b3 (patch)
tree26534caa5ee6e522456ccdebb8dc36744611e1f6 /Source/CPack/cmCPackGenerator.cxx
parent8a1d25afdf92cabab88598cc9b9e5a9fb2a9493b (diff)
downloadCMake-080a79ca4a0448043e0713b9b580c5f84b7330b3.zip
CMake-080a79ca4a0448043e0713b9b580c5f84b7330b3.tar.gz
CMake-080a79ca4a0448043e0713b9b580c5f84b7330b3.tar.bz2
cmSystemTools: More methods accept `std::string` params
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 b4c05ab..71808ab 100644
--- a/Source/CPack/cmCPackGenerator.cxx
+++ b/Source/CPack/cmCPackGenerator.cxx
@@ -387,8 +387,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);