diff options
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 5712291..d736fa2 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1685,11 +1685,18 @@ bool cmSystemTools::CreateTar(const char* outFileName, char* realName = new char[ strlen(outFileName) + 1 ]; std::auto_ptr<char> realNamePtr(realName); strcpy(realName, outFileName); + int options = 0; + if(verbose) + { + options |= TAR_VERBOSE; + } +#ifdef __CYGWIN__ + options |= TAR_GNU; +#endif if (tar_open(&t, realName, (gzip? &gztype : NULL), O_WRONLY | O_CREAT, 0644, - (verbose?TAR_VERBOSE:0) - | 0) == -1) + options) == -1) { cmSystemTools::Error("Problem with tar_open(): ", strerror(errno)); return false; |