aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarat Dukhan <marat@fb.com>2017-10-17 15:20:35 -0700
committerMarat Dukhan <marat@fb.com>2017-10-17 15:20:35 -0700
commitd0a0d042dbdf6ad66c4cfc450ea5d582b40a530a (patch)
tree64bceb9804ec74686673d2ca0b7c0f759a42507a
parentf685849148a766828172e5b8d4193911e8a45bec (diff)
downloadFXdiv-d0a0d042dbdf6ad66c4cfc450ea5d582b40a530a.tar.gz
Build tests and benchmarks by default
-rw-r--r--CMakeLists.txt4
-rw-r--r--cmake/FindGBenchmark.cmake2
2 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2e977d4..e27c73a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,8 +6,8 @@ INCLUDE(GNUInstallDirs)
PROJECT(FXdiv LANGUAGES CXX)
# ---[ Options.
-OPTION(FXDIV_BUILD_TESTS "Build C++ unit tests" OFF)
-OPTION(FXDIV_BUILD_BENCHMARKS "Build C++ micro-benchmarks" OFF)
+OPTION(FXDIV_BUILD_TESTS "Build FXdiv unit tests" ON)
+OPTION(FXDIV_BUILD_BENCHMARKS "Build FXdiv micro-benchmarks" ON)
# ---[ CMake options
LIST(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
diff --git a/cmake/FindGBenchmark.cmake b/cmake/FindGBenchmark.cmake
index bdadd00..2c034b6 100644
--- a/cmake/FindGBenchmark.cmake
+++ b/cmake/FindGBenchmark.cmake
@@ -2,7 +2,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.2 FATAL_ERROR)
FUNCTION(BUILD_GBENCHMARK)
INCLUDE(ExternalProject)
- SET(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "" FORCE)
+ SET(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "")
ExternalProject_Add(google_benchmark
URL https://github.com/google/benchmark/archive/v1.2.0.zip
URL_HASH SHA256=cc463b28cb3701a35c0855fbcefb75b29068443f1952b64dd5f4f669272e95ea