summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-05-02 22:43:19 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-05-02 22:43:19 (GMT)
commit12048d82769997724107d461e9b4f7d12cad41d1 (patch)
treecd1952388bcef083f5df73d376cf331cb23da3ad /Source/CPack
parent6597cc48089afca7dcefe167aee17f58bd187cae (diff)
downloadCMake-12048d82769997724107d461e9b4f7d12cad41d1.zip
CMake-12048d82769997724107d461e9b4f7d12cad41d1.tar.gz
CMake-12048d82769997724107d461e9b4f7d12cad41d1.tar.bz2
COMP: Try to fix windows builds
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cmCPackTarCompressGenerator.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackTarCompressGenerator.cxx b/Source/CPack/cmCPackTarCompressGenerator.cxx
index 066b384..59527cd 100644
--- a/Source/CPack/cmCPackTarCompressGenerator.cxx
+++ b/Source/CPack/cmCPackTarCompressGenerator.cxx
@@ -26,7 +26,14 @@
#include "cmCPackLog.h"
#include <cmsys/SystemTools.hxx>
-#include <sys/stat.h>
+
+// Includes needed for implementation of RenameFile. This is not in
+// system tools because it is not implemented robustly enough to move
+// files across directories.
+#ifdef _WIN32
+# include <windows.h>
+# include <sys/stat.h>
+#endif
//----------------------------------------------------------------------
cmCPackTarCompressGenerator::cmCPackTarCompressGenerator()