From d038472c18e7aa5b206896a9cd71b220b36b5eb8 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 5 Sep 2016 15:48:40 -0600 Subject: Refactor benchmark.cc into benchmark_register.cc and benchmark.cc (#287) * Refactor benchmark.cc into benchmark_register.cc and benchmark_run.cc The benchmark.cc file is getting really big and it contains a bunch of unrelated components. This patch separates the files into two separate parts. The "runtime" parts and the "registration" parts. This patch also removes the PIMPL used by Benchmark. Previously we couldn't have STL types in the interface but now we can. Therefore there is no reason to keep BenchmarkImp. * add missing include * rework windows timers again * Guard timespec on older Windows versions * Remove old thread safety annotation workarounds --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 86f6142..dfa8a65 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -147,9 +147,14 @@ if (BENCHMARK_USE_LIBCXX) endif(BENCHMARK_USE_LIBCXX) # C++ feature checks +# Determine the correct regular expression engine to use cxx_feature_check(STD_REGEX) cxx_feature_check(GNU_POSIX_REGEX) cxx_feature_check(POSIX_REGEX) +if(NOT HAVE_STD_REGEX AND NOT HAVE_GNU_POSIX_REGEX AND NOT HAVE_POSIX_REGEX) + message(FATAL_ERROR "Failed to determine the source files for the regular expression backend") +endif() + cxx_feature_check(STEADY_CLOCK) # Ensure we have pthreads find_package(Threads REQUIRED) -- cgit v1.2.3