mirror of
https://github.com/MariaDB/server.git
synced 2025-04-02 05:15:33 +02:00
Fix error failed to compile regex
This error occurred when the path to the project contained regular expression characters.
This commit is contained in:
parent
39f195052c
commit
17cbae6501
1 changed files with 2 additions and 1 deletions
|
@ -15,11 +15,12 @@
|
|||
|
||||
file(GLOB
|
||||
PLUGIN_CMAKE_LISTS_LIST
|
||||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/*/CMakeLists.txt")
|
||||
if(PLUGIN_CMAKE_LISTS_LIST)
|
||||
foreach(PLUGIN_CMAKE_LISTS "${PLUGIN_CMAKE_LISTS_LIST}")
|
||||
string(REGEX REPLACE
|
||||
"(^${CMAKE_CURRENT_SOURCE_DIR}/+|/+CMakeLists\\.txt$)" ""
|
||||
"(/+CMakeLists\\.txt$)" ""
|
||||
PLUGIN_DIR
|
||||
"${PLUGIN_CMAKE_LISTS}")
|
||||
add_subdirectory("${PLUGIN_DIR}")
|
||||
|
|
Loading…
Add table
Reference in a new issue