diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-09-15 12:55:50 +0200 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2024-09-16 17:32:34 +0200 |
commit | bf0e2fc469373a6837b031cd1f542ca84fa76f22 (patch) | |
tree | 64f15803485215890c2afe1c84f4194d3a9038eb /cmake | |
parent | 7972d45a869a176442f570356737f596879df710 (diff) |
Build: Automatically include WindowsSettings.manifest in all executables instead of listing it separately as source file in every target
(cherry picked from commit a21e7c738e3f03347a3e96bda11e29e090ad71b6)
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/platform/win/WindowsSettings.manifest | 13 | ||||
-rw-r--r-- | cmake/platform/win/settings.cmake | 5 |
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>) |