[llvm] [cpack][NSIS Installer] Make installer DPI-Aware (PR #128470)

via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 23 22:24:40 PST 2025


https://github.com/leha-bot created https://github.com/llvm/llvm-project/pull/128470

See https://cmake.org/cmake/help/latest/cpack_gen/nsis.html#variable:CPACK_NSIS_MANIFEST_DPI_AWARE for details.

>From 43c57afbb7033afd7a7fdaa0ebc47bb89484c7d7 Mon Sep 17 00:00:00 2001
From: Alex <leha-bot at users.noreply.github.com>
Date: Mon, 24 Feb 2025 09:23:13 +0300
Subject: [PATCH] [cpack][NSIS Installer] Make installer DPI-Aware

See https://cmake.org/cmake/help/latest/cpack_gen/nsis.html#variable:CPACK_NSIS_MANIFEST_DPI_AWARE for details.
---
 llvm/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 88512d0f1dd96..3e8549db004c2 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -408,6 +408,7 @@ if(WIN32 AND NOT UNIX)
   set(CPACK_NSIS_MUI_UNIICON "${CMAKE_CURRENT_SOURCE_DIR}\\\\cmake\\\\nsis_icon.ico")
   set(CPACK_NSIS_MODIFY_PATH "ON")
   set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL "ON")
+  set(CPACK_NSIS_MANIFEST_DPI_AWARE "ON")
   if( CMAKE_CL_64 )
     if(NOT DEFINED CPACK_NSIS_INSTALL_ROOT)
       set(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64")



More information about the llvm-commits mailing list