diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-05-02 22:43:19 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-05-02 22:43:19 (GMT) |
commit | 12048d82769997724107d461e9b4f7d12cad41d1 (patch) | |
tree | cd1952388bcef083f5df73d376cf331cb23da3ad /Source/CPack/cmCPackTarCompressGenerator.cxx | |
parent | 6597cc48089afca7dcefe167aee17f58bd187cae (diff) | |
download | CMake-12048d82769997724107d461e9b4f7d12cad41d1.zip CMake-12048d82769997724107d461e9b4f7d12cad41d1.tar.gz CMake-12048d82769997724107d461e9b4f7d12cad41d1.tar.bz2 |
COMP: Try to fix windows builds
Diffstat (limited to 'Source/CPack/cmCPackTarCompressGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackTarCompressGenerator.cxx | 9 |
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() |