Skip to content

Commit

Permalink
fixed conan_check VERSION cmake regex backslash escape issue, #246
Browse files Browse the repository at this point in the history
  • Loading branch information
Mustafa Kemal GILOR committed Jun 3, 2020
1 parent 4ea2603 commit 6067fd6
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 6067fd6

Please sign in to comment.