From 8ad9afda9be30a4fd017fd7893602fe4aa014ce9 Mon Sep 17 00:00:00 2001 From: Haonan Date: Mon, 15 Oct 2018 20:35:32 -0700 Subject: [PATCH] handle double-digit version This bug has been fixed in the official repo --- SetFlags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SetFlags.cmake b/SetFlags.cmake index f26fc1b963..4298f675f9 100644 --- a/SetFlags.cmake +++ b/SetFlags.cmake @@ -26,7 +26,7 @@ macro(get_clang_version) execute_process( COMMAND "${CMAKE_CXX_COMPILER}" "--version" OUTPUT_VARIABLE CLANG_VERSION_OUTPUT) - string(REGEX MATCH "version ([0-9]\\.[0-9])" x ${CLANG_VERSION_OUTPUT}) + string(REGEX MATCH "version ([0-9]+\\.[0-9]+)" x ${CLANG_VERSION_OUTPUT}) set(CLANG_VERSION ${CMAKE_MATCH_1}) endmacro()