aboutsummaryrefslogtreecommitdiff
path: root/cmake/genrev.cmake
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-10-04 22:36:46 +0200
committerOvahlord <dreadkiller@gmx.de>2024-10-05 18:46:01 +0200
commitc59a47e875ac603b5c23effffa95482455bd020d (patch)
tree0bcb73da12a5f0aa5f403baeb32b92f2000b1b0d /cmake/genrev.cmake
parent4b1ba0557999a835a6b30b18802bd00666e7a804 (diff)
Build: Handle localized "Microsoft" name returned from Get-CimInstance
(cherry picked from commit bfb6c9551870d2fadf789223e52c7799828b3f1b)
Diffstat (limited to 'cmake/genrev.cmake')
-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)