mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-24 02:07:53 +02:00
Windows/CMake: Add app.manifest into icinga2.exe
This commit is contained in:
parent
604ce59c8e
commit
a2b7c69cd4
@ -76,6 +76,20 @@ set_target_properties (
|
||||
OUTPUT_NAME icinga2
|
||||
)
|
||||
|
||||
# Amend manifest to tell Windows that the application is DPI aware (needed for Windows 8.1 and up)
|
||||
if(MSVC)
|
||||
if(CMAKE_MAJOR_VERSION LESS 3)
|
||||
MESSAGE(WARNING "CMake version 3.0 or newer is required use build variable TARGET_FILE")
|
||||
else()
|
||||
ADD_CUSTOM_COMMAND(
|
||||
TARGET ${TARGET_TARGETNAME}
|
||||
POST_BUILD
|
||||
COMMAND "mt.exe" -manifest \"${CMAKE_CURRENT_SOURCE_DIR}\\agent\\windows-setup-agent\\app.manifest\" -inputresource:\"$<TARGET_FILE:${TARGET_TARGETNAME}>\"\;\#1 -outputresource:\"$<TARGET_FILE:${TARGET_TARGETNAME}>\"\;\#1
|
||||
COMMENT "Adding OS version detection manifest..."
|
||||
)
|
||||
endif()
|
||||
endif(MSVC)
|
||||
|
||||
if(WIN32)
|
||||
set(InstallPath "${CMAKE_INSTALL_SBINDIR}")
|
||||
else()
|
||||
|
Loading…
x
Reference in New Issue
Block a user