summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-10-12 18:59:43 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-10-12 18:59:43 (GMT)
commitb548e2db1f9cd408749e67d9e9e2644dc15d5256 (patch)
tree01331a4a43a50887587affff9a9076f97e471ea2
parent911317a2a70449446642f4f3998c48560b10e4a3 (diff)
downloadCMake-b548e2db1f9cd408749e67d9e9e2644dc15d5256.zip
CMake-b548e2db1f9cd408749e67d9e9e2644dc15d5256.tar.gz
CMake-b548e2db1f9cd408749e67d9e9e2644dc15d5256.tar.bz2
ENH: Add NSIS compression
-rw-r--r--Modules/NSIS.template.in3
-rw-r--r--Source/CPack/cmCPackNSISGenerator.cxx1
2 files changed, 4 insertions, 0 deletions
diff --git a/Modules/NSIS.template.in b/Modules/NSIS.template.in
index 2994c78..eea59c3 100644
--- a/Modules/NSIS.template.in
+++ b/Modules/NSIS.template.in
@@ -78,6 +78,9 @@ FunctionEnd
Name "@CPACK_PACKAGE_INSTALL_DIRECTORY@"
OutFile "@CPACK_TOPLEVEL_DIRECTORY@/@CPACK_OUTPUT_FILE_NAME@"
+ ;Set compression
+ SetCompressor @CPACK_NSIS_COMPRESSOR@
+
;--------------------------------
;Interface Settings
diff --git a/Source/CPack/cmCPackNSISGenerator.cxx b/Source/CPack/cmCPackNSISGenerator.cxx
index 8b1c879..1b54701 100644
--- a/Source/CPack/cmCPackNSISGenerator.cxx
+++ b/Source/CPack/cmCPackNSISGenerator.cxx
@@ -232,6 +232,7 @@ int cmCPackNSISGenerator::InitializeInternal()
this->SetOptionIfNotSet("CPACK_NSIS_DELETE_ICONS",
deleteStr.str().c_str());
}
+ this->SetOptionIfNotSet("CPACK_NSIS_COMPRESSOR", "lzma");
return this->Superclass::InitializeInternal();
}