mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 06:09:52 -06:00
CPack - preserve timestamp for CPACK_INSTALLED_DIRECTORIES. fixes: #0013193
This commit is contained in:
@@ -388,8 +388,11 @@ int cmCPackGenerator::InstallProjectViaInstalledDirectories(
|
|||||||
std::string>(targetFile,inFileRelative));
|
std::string>(targetFile,inFileRelative));
|
||||||
}
|
}
|
||||||
/* If it is not a symlink then do a plain copy */
|
/* If it is not a symlink then do a plain copy */
|
||||||
else if ( !cmSystemTools::CopyFileIfDifferent(inFile.c_str(),
|
else if (!(
|
||||||
filePath.c_str()) )
|
cmSystemTools::CopyFileIfDifferent(inFile.c_str(),filePath.c_str())
|
||||||
|
&&
|
||||||
|
cmSystemTools::CopyFileTime(inFile.c_str(),filePath.c_str())
|
||||||
|
) )
|
||||||
{
|
{
|
||||||
cmCPackLogger(cmCPackLog::LOG_ERROR, "Problem copying file: "
|
cmCPackLogger(cmCPackLog::LOG_ERROR, "Problem copying file: "
|
||||||
<< inFile.c_str() << " -> " << filePath.c_str() << std::endl);
|
<< inFile.c_str() << " -> " << filePath.c_str() << std::endl);
|
||||||
|
|||||||
Reference in New Issue
Block a user