mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-07 13:39:55 +00:00
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 <[email protected]>
This commit is contained in:
1 parent
0214069e33
commit
04421e7d4d
1 file changed
+2
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user