CMake script regex match patterns has unnecessary kleenes #1040
Labels
category: CMake
difficulty: easy
Good issues for starting out with HPX development
type: enhancement
Milestone
Several of the
string(REGEX MATCH
patterns in the CMake scripts surround the pattern with.*
on one or both sides. This is unnecessary as this kind of pattern only needs to match the part that it tries to match.On my FreeBSD machine with Clang 3.3, the pattern in
cmake/HPX_Compile.cmake:91
[1] tries to match across 120 kilobytes of linker errors and doesn't terminate in acceptable timescales (still hung after ten minutes of saturation).Removing the
.*
parts results in an acceptable sub-second match attempt.There seems to be more occurrences of unnecessary wildcards in the codebase as well, but none that trigger performance cliffs on my system.
[1]
".*(argument unused during compilation|unknown warning option).*"
The text was updated successfully, but these errors were encountered: