ENH: Add NSIS compression
This commit is contained in:
parent
911317a2a7
commit
b548e2db1f
|
@ -78,6 +78,9 @@ FunctionEnd
|
||||||
Name "@CPACK_PACKAGE_INSTALL_DIRECTORY@"
|
Name "@CPACK_PACKAGE_INSTALL_DIRECTORY@"
|
||||||
OutFile "@CPACK_TOPLEVEL_DIRECTORY@/@CPACK_OUTPUT_FILE_NAME@"
|
OutFile "@CPACK_TOPLEVEL_DIRECTORY@/@CPACK_OUTPUT_FILE_NAME@"
|
||||||
|
|
||||||
|
;Set compression
|
||||||
|
SetCompressor @CPACK_NSIS_COMPRESSOR@
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Interface Settings
|
;Interface Settings
|
||||||
|
|
||||||
|
|
|
@ -232,6 +232,7 @@ int cmCPackNSISGenerator::InitializeInternal()
|
||||||
this->SetOptionIfNotSet("CPACK_NSIS_DELETE_ICONS",
|
this->SetOptionIfNotSet("CPACK_NSIS_DELETE_ICONS",
|
||||||
deleteStr.str().c_str());
|
deleteStr.str().c_str());
|
||||||
}
|
}
|
||||||
|
this->SetOptionIfNotSet("CPACK_NSIS_COMPRESSOR", "lzma");
|
||||||
|
|
||||||
return this->Superclass::InitializeInternal();
|
return this->Superclass::InitializeInternal();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue