summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-10-05 13:46:28 (GMT)
committerBrad King <brad.king@kitware.com>2007-10-05 13:46:28 (GMT)
commita2b2742543ee952504c03807aa787c051a4abe72 (patch)
tree78741704d92355714781396616fb523d1441439f /Source/cmSystemTools.h
parentb5ca9ba3c8cb83127ba25ce88e9e8a7f1987d9e1 (diff)
downloadCMake-a2b2742543ee952504c03807aa787c051a4abe72.zip
CMake-a2b2742543ee952504c03807aa787c051a4abe72.tar.gz
CMake-a2b2742543ee952504c03807aa787c051a4abe72.tar.bz2
ENH: During file installation treat the source file as a dependency of the installed file. Install the file only if the destination is older than the source. Set the file times on the installed file to match those of the source file. This should greatly improve the speed of repeated installations because it removes the comparison of file contents. This addresses bug#3349.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index ed95bdf..9007537 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -345,6 +345,11 @@ public:
// if you want to be able to kill child processes and
// not get stuck waiting for all the output on the pipes.
static void DoNotInheritStdPipes();
+
+ /** Copy the file create/access/modify times from the file named by
+ the first argument to that named by the second. */
+ static bool CopyFileTime(const char* fromFile, const char* toFile);
+
private:
static bool s_ForceUnixPaths;
static bool s_RunCommandHideConsole;