From e5f7cbd8e4d1003ccc29a80a85eec02cb469d898 Mon Sep 17 00:00:00 2001 From: acpaquette Date: Tue, 14 Nov 2023 12:04:49 -0700 Subject: [PATCH] Fixes regex for version parsing (#5312) --- isis/cmake/Utilities.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isis/cmake/Utilities.cmake b/isis/cmake/Utilities.cmake index 0687d5f0df..9eaf1ed8e8 100644 --- a/isis/cmake/Utilities.cmake +++ b/isis/cmake/Utilities.cmake @@ -169,7 +169,7 @@ function(get_os_version text) ERROR_VARIABLE result) # Format the string - string(REGEX MATCH "[0-9]+.[0-9]+.[0-9]+" version "${result}") + string(REGEX MATCH "[0-9]+\.[0-9]+\.?[0-9]*" version "${result}") string(REGEX MATCH "^[0-9]+.[0-9]+" version "${version}") string(REPLACE "." "_" version "${version}")