diff --git a/cmake/Modules/FindCXX11Features.cmake b/cmake/Modules/FindCXX11Features.cmake index b51f0a8f3..9697cc79e 100644 --- a/cmake/Modules/FindCXX11Features.cmake +++ b/cmake/Modules/FindCXX11Features.cmake @@ -133,7 +133,7 @@ CHECK_CXX_SOURCE_RUNS(" #include int main(void) { - std::regex r(\"AB.*|BC+\"); + std::regex r(\"AB.*|BC+\", std::regex::extended); if (!std::regex_match(\"AB\", r)) return 1; if (!std::regex_match(\"ABC\", r))