Skip to content

Commit 17cbae6

Browse files
heckadsvoj
authored andcommitted
Fix error failed to compile regex
This error occurred when the path to the project contained regular expression characters.
1 parent 39f1950 commit 17cbae6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

storage/mroonga/vendor/groonga/vendor/plugins/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515

1616
file(GLOB
1717
PLUGIN_CMAKE_LISTS_LIST
18+
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
1819
"${CMAKE_CURRENT_SOURCE_DIR}/*/CMakeLists.txt")
1920
if(PLUGIN_CMAKE_LISTS_LIST)
2021
foreach(PLUGIN_CMAKE_LISTS "${PLUGIN_CMAKE_LISTS_LIST}")
2122
string(REGEX REPLACE
22-
"(^${CMAKE_CURRENT_SOURCE_DIR}/+|/+CMakeLists\\.txt$)" ""
23+
"(/+CMakeLists\\.txt$)" ""
2324
PLUGIN_DIR
2425
"${PLUGIN_CMAKE_LISTS}")
2526
add_subdirectory("${PLUGIN_DIR}")

0 commit comments

Comments
 (0)