Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions FindBenchmark.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
include("GenericFindDependency")
option(BENCHMARK_ENABLE_TESTING "" OFF)
option(BENCHMARK_ENABLE_INSTALL "" OFF)
option(BENCHMARK_ENABLE_GTEST_TESTS "" OFF)
option(BENCHMARK_ENABLE_EXCEPTIONS "" OFF)
GenericFindDependency(
TARGET benchmark
SYSTEM_INCLUDES
)
2 changes: 2 additions & 0 deletions SwiftCmakeOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ function(verify_test_dependencies)
set(found TRUE)
elseif(${P} STREQUAL "FastCSV" AND TARGET fast-csv)
set(found TRUE)
elseif(${P} STREQUAL "Benchmark" AND TARGET benchmark)
set(found TRUE)
endif()
if(NOT found)
message(STATUS "Disable tests because dependency ${P} was not found")
Expand Down