Skip to content

Commit

Permalink
Fix regex for legacy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rbsheth committed Aug 13, 2020
1 parent 8c9e82e commit 144f91d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/protobuf-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function(protobuf_generate)
foreach(DIR ${_protobuf_include_path})
if(NOT DIR STREQUAL "-I")
file(RELATIVE_PATH _rel_dir ${DIR} ${_abs_dir})
if(NOT "${_rel_dir}" MATCHES "^\.\.[/\\].*")
if(NOT "${_rel_dir}" MATCHES "^\\.\\.[/\\\\].*")
set(_suitable_include_found TRUE)
break()
endif()
Expand Down

0 comments on commit 144f91d

Please sign in to comment.