Skip to content

Commit 52e3dd2

Browse files
Fix ToolsetVer regex
1 parent cb10120 commit 52e3dd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/GetBoostLibB2Args.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function(get_boots_lib_b2_args)
7171
else()
7272
list(APPEND b2Args cxxflags=-fPIC cxxflags=-std=c++11)
7373
# Need to configure the toolset based on whatever version CMAKE_CXX_COMPILER is
74-
string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]" ToolsetVer "${CMAKE_CXX_COMPILER_VERSION}")
74+
string(REGEX MATCH "[0-9]+\\.[0-9]+(?:\\.[0-9]+)?" ToolsetVer "${CMAKE_CXX_COMPILER_VERSION}")
7575
if(CMAKE_CXX_COMPILER_ID MATCHES "^(Apple)?Clang$")
7676
list(APPEND b2Args toolset=clang-${ToolsetVer})
7777
if(HAVE_LIBC++)
@@ -84,4 +84,4 @@ function(get_boots_lib_b2_args)
8484
endif()
8585

8686
set(b2Args "${b2Args}" PARENT_SCOPE)
87-
endfunction(get_boots_lib_b2_args)
87+
endfunction(get_boots_lib_b2_args)

0 commit comments

Comments
 (0)