You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Escape special characters before using source/build dirs in regex
If "^${CMAKE_SOURCE_DIR}" contains special characters, the regular
expression will break with an error like this for Garfield++:
RegularExpression::compile(): Nested *?+.
RegularExpression::compile(): Error in compile.
CMake Error at .../RootNewMacros.cmake:288 (if):
if given arguments:
"NOT" "IS_ABSOLUTE" "incdir"
"OR" "incdir" "MATCHES" "^/<...>/src/Garfield++/HEAD"
"OR" "incdir" "MATCHES" "^"
"OR" "incdir" "MATCHES" "^"
Regular expression
"^/<...>/src/Garfield++/HEAD"
cannot compile
Call Stack (most recent call first):
CMakeLists.txt:118 (ROOT_GENERATE_DICTIONARY)
Also, the (current) build directory is CMAKE_(CURRENT_)BINARY_DIR.
Related Jira issue: ROOT-10210.
0 commit comments