diff options
author | Johnny Jazeix <jazeix@gmail.com> | 2020-04-14 11:47:49 (GMT) |
---|---|---|
committer | Johnny Jazeix <jazeix@gmail.com> | 2020-04-14 11:47:49 (GMT) |
commit | d6840a4f3cee501aa910035bb7fa2dad3c8d7f73 (patch) | |
tree | 86fc4c6b95c7e910cb31e4fd6cfaca1faa1d78ef /Source/CPack | |
parent | fab932c3cba9423443c7ab25fda3999e4fc4b347 (diff) | |
download | CMake-d6840a4f3cee501aa910035bb7fa2dad3c8d7f73.zip CMake-d6840a4f3cee501aa910035bb7fa2dad3c8d7f73.tar.gz CMake-d6840a4f3cee501aa910035bb7fa2dad3c8d7f73.tar.bz2 |
CPack/NSIS: Add option for setting DPI-aware
See https://nsis.sourceforge.io/Reference/ManifestDPIAware
for more information.
Fixes: #17724
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cmCPackNSISGenerator.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackNSISGenerator.cxx b/Source/CPack/cmCPackNSISGenerator.cxx index 9afdc62..3067f96 100644 --- a/Source/CPack/cmCPackNSISGenerator.cxx +++ b/Source/CPack/cmCPackNSISGenerator.cxx @@ -203,6 +203,11 @@ int cmCPackNSISGenerator::PackageFiles() "!define MUI_FINISHPAGE_TITLE_3LINES"); } + if (this->IsSet("CPACK_NSIS_MANIFEST_DPI_AWARE")) { + this->SetOptionIfNotSet("CPACK_NSIS_MANIFEST_DPI_AWARE_CODE", + "ManifestDPIAware true"); + } + // Setup all of the component sections if (this->Components.empty()) { this->SetOptionIfNotSet("CPACK_NSIS_INSTALLATION_TYPES", ""); |