diff --git a/icinga-app/CMakeLists.txt b/icinga-app/CMakeLists.txt index 83e8e1a6a..2ebfb17dd 100644 --- a/icinga-app/CMakeLists.txt +++ b/icinga-app/CMakeLists.txt @@ -82,9 +82,9 @@ if(MSVC) MESSAGE(WARNING "CMake version 3.0 or newer is required use build variable TARGET_FILE") else() ADD_CUSTOM_COMMAND( - TARGET ${TARGET_TARGETNAME} + TARGET icinga-app POST_BUILD - COMMAND "mt.exe" -manifest \"${CMAKE_CURRENT_SOURCE_DIR}\\agent\\windows-setup-agent\\app.manifest\" -inputresource:\"$\"\;\#1 -outputresource:\"$\"\;\#1 + COMMAND "mt.exe" -manifest \"${CMAKE_CURRENT_SOURCE_DIR}\\app.manifest\" -outputresource:\"icinga2\"\;\#1 COMMENT "Adding OS version detection manifest..." ) endif() diff --git a/icinga-app/app.manifest b/icinga-app/app.manifest new file mode 100644 index 000000000..cf5cb1f13 --- /dev/null +++ b/icinga-app/app.manifest @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + +