Build: Add missing quote around TRINITY_BUILD_HOST_SYSTEM_RELEASE variable during revision_data.h generation (#31732)

* Fixes more edge cases with localized output from Get-CimInstance
This commit is contained in:
wang radium
2026-03-21 10:08:36 +08:00
committed by GitHub
parent a435d8a133
commit ec3065b354

View File

@@ -134,7 +134,7 @@ if(WIN32)
OUTPUT_STRIP_TRAILING_WHITESPACE
)
# Remove "Microsoft Windows" from the result
string(REGEX REPLACE "^.* Windows " "" TRINITY_BUILD_HOST_SYSTEM_RELEASE ${TRINITY_BUILD_HOST_SYSTEM_RELEASE})
string(REGEX REPLACE "^.* Windows " "" TRINITY_BUILD_HOST_SYSTEM_RELEASE "${TRINITY_BUILD_HOST_SYSTEM_RELEASE}")
endif()
if(CMAKE_SCRIPT_MODE_FILE)