Merge pull request #5301 from wachi35676/fix/relinker-resource-path-spaces

fix(relinker): build the manifest resource in paths with spaces
This commit is contained in:
Dean 2026-10-14 14:35:21 +13:00 committed by GitHub
commit e41cb23415
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -116,8 +116,9 @@ if(BUILD_TESTING AND WIN32)
endif()
if(WIN32)
target_sources(relinker PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/relinker.rc)
add_library(relinker_resources OBJECT ${CMAKE_CURRENT_SOURCE_DIR}/relinker.rc)
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/relinker.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/relinker.manifest)
target_sources(relinker PRIVATE $<TARGET_OBJECTS:relinker_resources>)
target_compile_options(relinker PRIVATE -municode)
target_link_options(relinker PRIVATE -municode)
endif()