aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-10-04 22:36:46 +0200
committerShauren <shauren.trinity@gmail.com>2025-08-30 22:55:25 +0200
commit29bc08175f0eda66865a850251713d2cdca1d11e (patch)
tree9ff4d6da2c54d7a88f72971bc6e47326c82466a0
parent9dff954ca7b04483238aa3aeaf6f77095aad9507 (diff)
Build: Handle localized "Microsoft" name returned from Get-CimInstance
(cherry picked from commit bfb6c9551870d2fadf789223e52c7799828b3f1b)
-rw-r--r--cmake/genrev.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/genrev.cmake b/cmake/genrev.cmake
index ba0d930b839..07f3b8d4d84 100644
--- a/cmake/genrev.cmake
+++ b/cmake/genrev.cmake
@@ -134,7 +134,7 @@ if(WIN32)
OUTPUT_STRIP_TRAILING_WHITESPACE
)
# Remove "Microsoft Windows" from the result
- string(REPLACE "Microsoft 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)