diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-09-15 12:55:50 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-08-30 22:55:25 +0200 |
commit | 58f9def30fe4f0f017538acc29e53fedd016893c (patch) | |
tree | c6d12df3fa3caad2ceb518e3282c7b0bb510a7bf /cmake/platform/win/settings.cmake | |
parent | 7e1e441dfadc157fbba8c05539fad6a5b9525ea4 (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/platform/win/settings.cmake')
-rw-r--r-- | cmake/platform/win/settings.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
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>) |