fix(relinker): build the manifest resource in paths with spaces
windres passes include directories to the preprocessor unquoted, so relinker.rc failed to compile when the checkout path contains a space. The resource is now an object library without the relinker's include directories. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0214069e33
commit
04421e7d4d
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue