In order to test https://gitlab.gnome.org/GNOME/glib/issues/1379 I tried building WebKit in a build directory named "build++" instead of something more traditional like "build". It uncovered this bug in WEBKIT_WRAP_SOURCELIST: -- Platform-specific CMakeLists not found: /home/mcatanzaro/Projects/WebKit/Source/bmalloc/PlatformGTK.cmake RegularExpression::compile(): Nested *?+. RegularExpression::compile(): Error in compile. CMake Error at Source/cmake/WebKitMacros.cmake:130 (if): if given arguments: "NOT" "_file" "MATCHES" "/home/mcatanzaro/Projects/WebKit/build++/DerivedSources/WebCore" Regular expression "/home/mcatanzaro/Projects/WebKit/build++/DerivedSources/WebCore" cannot compile Call Stack (most recent call first): Source/bmalloc/CMakeLists.txt:158 (WEBKIT_WRAP_SOURCELIST) where the + characters from the filename are interpreted as if part of a regex. Presumably they should be escaped somehow.
Here is a way how it presumably should be escaped: https://gitlab.kitware.com/cmake/cmake/issues/18580#note_483128
Macro removed in r270516 <https://trac.webkit.org/changeset/270516/webkit>