summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackNSISGenerator.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-04-02 15:20:58 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-04-02 15:20:58 (GMT)
commitd342d51c0cc2ab2dc0f1053817a5a98b14a3fcf4 (patch)
tree31ee8a0969c5a3538d178a9dfa207f6fc26838dd /Source/CPack/cmCPackNSISGenerator.cxx
parentc0fe6aa97af5fa668fecf839e3baaafe4ffc2ad0 (diff)
downloadCMake-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/cmCPackNSISGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackNSISGenerator.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackNSISGenerator.cxx b/Source/CPack/cmCPackNSISGenerator.cxx
index 6261960..f4afea1 100644
--- a/Source/CPack/cmCPackNSISGenerator.cxx
+++ b/Source/CPack/cmCPackNSISGenerator.cxx
@@ -122,6 +122,14 @@ int cmCPackNSISGenerator::Initialize(const char* name, cmMakefile* mf)
{
return res;
}
+ if ( cmSystemTools::IsOn(this->GetOption(
+ "CPACK_INCLUDE_TOPLEVEL_DIRECTORY")) )
+ {
+ cmCPackLogger(cmCPackLog::LOG_ERROR, "NSIS Generator cannot work with CPACK_INCLUDE_TOPLEVEL_DIRECTORY. This option will be ignored."
+ << std::endl);
+ this->SetOption("CPACK_INCLUDE_TOPLEVEL_DIRECTORY", 0);
+ }
+
cmCPackLogger(cmCPackLog::LOG_DEBUG, "cmCPackNSISGenerator::Initialize()"
<< std::endl);
std::vector<std::string> path;