Skip to content

Commit

Permalink
added making dependencies available to googlebenchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Jan 4, 2024
1 parent e2da4e0 commit a809cb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
# Establish project
##############################################################

project(sketches VERSION 0.1 LANGUAGES C CXX)
project(Loki VERSION 0.1 LANGUAGES C CXX)

# Compilation flags, some configuration-specific
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Wextra -pedantic -fPIC")
Expand All @@ -33,6 +33,8 @@ if (ENABLE_TESTING)
else()
message("Testing disabled.")
endif()

option(ENABLE_BENCHMARKING "Enables compilation of tests." OFF)
if (ENABLE_BENCHMARKING)
message("Benchmarking enabled.")
else()
Expand Down
1 change: 1 addition & 0 deletions benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ FetchContent_Declare(
)

# Make Google Benchmark available
set(BENCHMARK_DOWNLOAD_DEPENDENCIES ON)
FetchContent_MakeAvailable(googlebenchmark)

# Now declare your executable
Expand Down

0 comments on commit a809cb6

Please sign in to comment.