diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-04-02 15:20:58 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-04-02 15:20:58 (GMT) |
commit | d342d51c0cc2ab2dc0f1053817a5a98b14a3fcf4 (patch) | |
tree | 31ee8a0969c5a3538d178a9dfa207f6fc26838dd /Source/CPack/cmCPackGenericGenerator.cxx | |
parent | c0fe6aa97af5fa668fecf839e3baaafe4ffc2ad0 (diff) | |
download | CMake-d342d51c0cc2ab2dc0f1053817a5a98b14a3fcf4.zip CMake-d342d51c0cc2ab2dc0f1053817a5a98b14a3fcf4.tar.gz CMake-d342d51c0cc2ab2dc0f1053817a5a98b14a3fcf4.tar.bz2 |
ENH: Add ZIP generator and add support for including or excluding the toplevel directory
Diffstat (limited to 'Source/CPack/cmCPackGenericGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackGenericGenerator.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackGenericGenerator.cxx b/Source/CPack/cmCPackGenericGenerator.cxx index e32d0f8..f61b70d 100644 --- a/Source/CPack/cmCPackGenericGenerator.cxx +++ b/Source/CPack/cmCPackGenericGenerator.cxx @@ -328,6 +328,11 @@ int cmCPackGenericGenerator::ProcessGenerator() << std::endl); cmSystemTools::RemoveFile(tempPackageFileName); } + if ( cmSystemTools::IsOn(this->GetOption( + "CPACK_INCLUDE_TOPLEVEL_DIRECTORY")) ) + { + tempDirectory = this->GetOption("CPACK_TOPLEVEL_DIRECTORY"); + } if ( !this->CompressFiles(tempPackageFileName, tempDirectory, gl.GetFiles()) ) { |