Skip to content

Commit

Permalink
Merge #1083
Browse files Browse the repository at this point in the history
1083: Adjust regex to fix build with googletest 1.10.0 r=RAOF a=z3ntu

The regex in tests/CMakeLists.txt didn't account for two digits and failed for 1.10.0.

Co-authored-by: Luca Weiss <luca@z3ntu.xyz>
  • Loading branch information
bors[bot] and z3ntu committed Nov 18, 2019
2 parents bc7f48e + 14dfe29 commit 5fdc447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Expand Up @@ -43,7 +43,7 @@ else()
endif()

string(REGEX MATCH
"([0-9])\\.([0-9])\\.([0-9])" GTEST_VERSION_PARSED
"([0-9])\\.([0-9]+)\\.([0-9])" GTEST_VERSION_PARSED
${GTEST_VERSION_STR})
if (GTEST_VERSION_PARSED)
set(GTEST_VERSION_MAJOR ${CMAKE_MATCH_1})
Expand Down

0 comments on commit 5fdc447

Please sign in to comment.