diff --git a/benchmark/CMakeLists.txt b/benchmark/CMakeLists.txt index 813013e1..361505ce 100644 --- a/benchmark/CMakeLists.txt +++ b/benchmark/CMakeLists.txt @@ -1,7 +1,9 @@ cmake_minimum_required (VERSION 3.15) -# Use google benchmark include(FetchContent) + +# Use google benchmark +set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "Suppressing benchmark's tests" FORCE) FetchContent_Declare(gbench GIT_REPOSITORY "https://github.com/google/benchmark.git" GIT_TAG "v1.8.3" @@ -9,7 +11,6 @@ FetchContent_Declare(gbench ) FetchContent_MakeAvailable(gbench) -set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "Suppressing benchmark's tests" FORCE) add_executable (ecs_bench "main.cpp" "bench_component.cpp" "bench_baseline.cpp" "bench_ranged.cpp" "bench_sorting.cpp" "bench_hierarchy.cpp" "bench_particles.cpp" "shared_system.cpp") target_link_libraries(ecs_bench ecs benchmark::benchmark)