We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f740f52 commit 3ad69cfCopy full SHA for 3ad69cf
cmake/install.cmake
@@ -79,7 +79,7 @@ foreach(_header ${protobuf_HEADERS})
79
set(_from_dir "${protobuf_SOURCE_DIR}")
80
endif()
81
# Escape _from_dir for regex special characters in the directory name.
82
- string(REGEX REPLACE "([.+*?\^$()[\]{}|\\])" "\\\\$1" _from_dir_regexp ${_from_dir})
+ string(REGEX REPLACE "([$^.[|*+?()]|])" "\\\\\\1" _from_dir_regexp "${_from_dir}")
83
# On some platforms `_form_dir` ends up being just "protobuf", which can
84
# easily match multiple times in our paths. We force it to only replace
85
# prefixes to avoid this case.
0 commit comments