Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 9c559bf

Browse files
author
Nicolas Cornu
authored
clang-format is now at the version 10, fix regex to match version (#296)
1 parent 56f6f77 commit 9c559bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMake/packages/FindClangFormat.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ foreach(p ${_PATH})
1111
foreach(candidate ${cand})
1212
set(CLANG_FORMAT_EXECUTABLE ${candidate})
1313
execute_process(COMMAND ${CLANG_FORMAT_EXECUTABLE} -version OUTPUT_VARIABLE clang_out )
14-
string(REGEX MATCH "version \([0-9]\\.[0-9]\)" VERSION_OUTPUT ${clang_out})
14+
string(REGEX MATCH "version \([0-9]+\\.[0-9]\)" VERSION_OUTPUT ${clang_out})
1515
set(CLANG_FORMAT_VERSION ${CMAKE_MATCH_1})
1616
if ((${CLANG_FORMAT_VERSION} VERSION_GREATER ${CLANG_FORMAT_MIN_VERSION}) OR (${CLANG_FORMAT_VERSION} VERSION_EQUAL ${CLANG_FORMAT_MIN_VERSION}))
1717
set (FIT_MIN_REQUIRED true)

0 commit comments

Comments
 (0)