Skip to content
Permalink
Browse files
Fix error failed to compile regex
This error occurred when the path to the project contained regular expression characters.
  • Loading branch information
heckad authored and Sergey Vojtovich committed Mar 29, 2019
1 parent 39f1950 commit 17cbae6
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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}")

0 comments on commit 17cbae6

Please sign in to comment.