Skip to content

Commit

Permalink
Merge pull request #247 from mustafakemalgilor/bugfix/cmake_check_reg…
Browse files Browse the repository at this point in the history
…ex_escape_issue

fixed conan_check VERSION cmake regex backslash escape issue, #246
  • Loading branch information
czoido authored Jul 13, 2020
2 parents c29f002 + 6067fd6 commit cdadd35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ macro(conan_check)
message(STATUS "Conan: Version found ${CONAN_VERSION_OUTPUT}")

if(DEFINED CONAN_VERSION)
string(REGEX MATCH ".*Conan version ([0-9]+\.[0-9]+\.[0-9]+)" FOO
string(REGEX MATCH ".*Conan version ([0-9]+\\.[0-9]+\\.[0-9]+)" FOO
"${CONAN_VERSION_OUTPUT}")
if(${CMAKE_MATCH_1} VERSION_LESS ${CONAN_VERSION})
message(FATAL_ERROR "Conan outdated. Installed: ${CMAKE_MATCH_1}, \
Expand Down

0 comments on commit cdadd35

Please sign in to comment.