cmake: Unconditionally add .rc files to sources

CMake ignores .rc files when compiling for non-Windows platform.
Checking for WIN32 before adding an .rc file to sources is redundant.
This commit is contained in:
Daniel Pfeifer
2025-10-09 17:28:47 +02:00
parent 654a4cf5e6
commit 99497b38f6
3 changed files with 20 additions and 17 deletions

View File

@@ -4,12 +4,6 @@
include_guard(GLOBAL)
function(add_windows_resources target rc_file)
if(WIN32)
target_sources(${target} PRIVATE ${rc_file})
endif()
endfunction()
# Add a fusion manifest to Windows executables.
# See: https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests
function(add_windows_application_manifest target)