diff options
Diffstat (limited to 'cmake/platform')
-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>) |