aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-09-15 12:55:50 +0200
committerShauren <shauren.trinity@gmail.com>2024-09-15 12:55:50 +0200
commita21e7c738e3f03347a3e96bda11e29e090ad71b6 (patch)
tree51e49cfae3bf9b5f7ed25f1bc987943e4f983410 /cmake
parent052f2d0a81460ba484c27d05fe34673cf467c75e (diff)
Build: Automatically include WindowsSettings.manifest in all executables instead of listing it separately as source file in every target
Diffstat (limited to 'cmake')
-rw-r--r--cmake/platform/win/WindowsSettings.manifest13
-rw-r--r--cmake/platform/win/settings.cmake5
2 files changed, 18 insertions, 0 deletions
diff --git a/cmake/platform/win/WindowsSettings.manifest b/cmake/platform/win/WindowsSettings.manifest
new file mode 100644
index 00000000000..b7da14cfe5c
--- /dev/null
+++ b/cmake/platform/win/WindowsSettings.manifest
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
+ <application xmlns="urn:schemas-microsoft-com:asm.v3">
+ <windowsSettings>
+ <activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage>
+ </windowsSettings>
+ </application>
+ <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
+ <application>
+ <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" /> <!-- Windows 10 -->
+ </application>
+ </compatibility>
+</assembly>
diff --git a/cmake/platform/win/settings.cmake b/cmake/platform/win/settings.cmake
index efae7696e17..dcec80a08c4 100644
--- a/cmake/platform/win/settings.cmake
+++ b/cmake/platform/win/settings.cmake
@@ -8,3 +8,8 @@ target_compile_definitions(trinity-compile-option-interface
# set up output paths for executable binaries (.exe-files, and .dll-files on DLL-capable platforms)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/$<CONFIG>")
+
+# add WindowsSettings.manifest to all executables
+target_sources(trinity-core-interface
+ INTERFACE
+ $<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:${CMAKE_SOURCE_DIR}/cmake/platform/win/WindowsSettings.manifest>)