Skip to content

Commit

Permalink
fix clang-tidy-10 not recognized
Browse files Browse the repository at this point in the history
  • Loading branch information
biermanncarl committed Mar 17, 2021
1 parent b1b1f44 commit 1fb0dc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/FindClangTidy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

# get Clang version
string(REGEX
REPLACE "^([1-9]+)\\.[0-9]+.*$"
REPLACE "^([0-9]+)\\.[0-9]+.*$"
"\\1"
CLANG_MAJOR_VERSION
"${CMAKE_CXX_COMPILER_VERSION}")
string(REGEX
REPLACE "^[1-9]+\\.([0-9]+).*$"
REPLACE "^[0-9]+\\.([0-9]+).*$"
"\\1"
CLANG_MINOR_VERSION
"${CMAKE_CXX_COMPILER_VERSION}")
Expand Down

0 comments on commit 1fb0dc8

Please sign in to comment.