summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-09 16:26:31 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-09 16:26:31 (GMT)
commit0c302a7e5fa1b52b6b59a0f299dd811a9a1194c7 (patch)
treed04d85e0e4ae1de2bcb0c802567910ebb944c60f /Source/CPack
parente8b7d233d7545e59fb0046913048d0bcc097ac33 (diff)
downloadCMake-0c302a7e5fa1b52b6b59a0f299dd811a9a1194c7.zip
CMake-0c302a7e5fa1b52b6b59a0f299dd811a9a1194c7.tar.gz
CMake-0c302a7e5fa1b52b6b59a0f299dd811a9a1194c7.tar.bz2
ENH: Fix test for cpack variables, add support for icon on windows
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cmCPackGenericGenerator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackGenericGenerator.cxx b/Source/CPack/cmCPackGenericGenerator.cxx
index 7f77178..6da855e 100644
--- a/Source/CPack/cmCPackGenericGenerator.cxx
+++ b/Source/CPack/cmCPackGenericGenerator.cxx
@@ -222,6 +222,11 @@ int cmCPackGenericGenerator::ProcessGenerator()
cmCPackLogger(cmCPackLog::LOG_OUTPUT, "Compress package" << std::endl);
cmCPackLogger(cmCPackLog::LOG_VERBOSE, "Compress files to: " << tempPackageFileName << std::endl);
+ if ( cmSystemTools::FileExists(tempPackageFileName) )
+ {
+ cmCPackLogger(cmCPackLog::LOG_VERBOSE, "Remove old package file" << std::endl);
+ cmSystemTools::RemoveFile(tempPackageFileName);
+ }
if ( !this->CompressFiles(tempPackageFileName,
tempDirectory, gl.GetFiles()) )
{