From 1ea00e5602de39469f3894b4ba99f4bdf09b8fc9 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Thu, 16 Jun 2016 14:34:08 +0200 Subject: [PATCH] FindCXX11Features.cmake: remove the test for `std::regex` this test is quite fragile, takes relatively long and after OPM/opm-parser#850 it is not required anymore. --- cmake/Modules/FindCXX11Features.cmake | 28 --------------------------- 1 file changed, 28 deletions(-) diff --git a/cmake/Modules/FindCXX11Features.cmake b/cmake/Modules/FindCXX11Features.cmake index 345402545..d6b974339 100644 --- a/cmake/Modules/FindCXX11Features.cmake +++ b/cmake/Modules/FindCXX11Features.cmake @@ -8,7 +8,6 @@ # HAVE_SHARED_PTR True if std::shared_ptr is available # HAVE_UNIQUE_PTR True if std::unique_ptr is available # HAVE_NULLPTR True if nullptr is available -# HAVE_REGEX True if std::regex available and sufficiently usable # HAVE_ARRAY True if header and fill() are available # HAVE_ATTRIBUTE_ALWAYS_INLINE True if attribute always inline is supported # HAS_ATTRIBUTE_UNUSED True if attribute unused is supported @@ -147,33 +146,6 @@ CHECK_CXX_SOURCE_COMPILES(" " HAVE_NULLPTR ) -# -CHECK_CXX_SOURCE_RUNS(" - #include - int main(void) - { - std::regex r(\"AB.*|BC+|DE.+\", std::regex::extended); - if (!std::regex_match(\"AB\", r)) - return 1; - if (!std::regex_match(\"ABC\", r)) - return 2; - if (!std::regex_match(\"ABC!#\", r)) - return 3; - if (std::regex_match(\"B\", r)) - return 4; - if (!std::regex_match(\"BC\", r)) - return 5; - if (std::regex_match(\"BCE\", r)) - return 6; - if (std::regex_match(\"DE\", r)) - return 7; - if (!std::regex_match(\"DEF\", r)) - return 8; - return 0; - } -" HAVE_REGEX -) - # constexpr CHECK_CXX_SOURCE_COMPILES(" template