Skip to content

Commit b6423a3

Browse files
authored
Remove googletest entirely as benchmark dependency (simdjson#504)
1 parent 4d2736f commit b6423a3

3 files changed

Lines changed: 8 additions & 16 deletions

File tree

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,3 @@
3131
[submodule "dependencies/benchmark"]
3232
path = dependencies/benchmark
3333
url = https://github.com/google/benchmark.git
34-
[submodule "dependencies/googletest"]
35-
path = dependencies/googletest
36-
url = https://github.com/google/googletest.git

CMakeLists.txt

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,16 @@ add_subdirectory(benchmark)
6363

6464
option(SIMDJSON_GOOGLE_BENCHMARKS "compile the Google Benchmark benchmarks" OFF)
6565
if (SIMDJSON_GOOGLE_BENCHMARKS)
66-
set(BENCHMARK_ENABLE_GTEST_TESTS OFF)
67-
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/googletest/CMakeLists.txt)
68-
# message(STATUS "Unable to find ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/googletest/CMakeLists.txt")
69-
execute_process(COMMAND git submodule update --init -- ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/googletest
66+
if(NOT EXISTS dependencies/benchmark/CMakeLists.txt)
67+
# message(STATUS "Unable to find dependencies/benchmark/CMakeLists.txt")
68+
execute_process(COMMAND git submodule update --init -- dependencies/benchmark
7069
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
7170
endif()
72-
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/benchmark/CMakeLists.txt)
73-
# message(STATUS "Unable to find ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/benchmark/CMakeLists.txt")
74-
execute_process(COMMAND git submodule update --init -- ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/benchmark
75-
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
76-
endif()
77-
78-
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/dependencies/googletest)
79-
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/dependencies/benchmark)
71+
option(BENCHMARK_ENABLE_TESTING OFF)
72+
set(BENCHMARK_ENABLE_TESTING OFF)
73+
option(BENCHMARK_ENABLE_INSTALL OFF)
74+
set(BENCHMARK_ENABLE_INSTALL OFF)
75+
add_subdirectory(dependencies/benchmark)
8076
endif()
8177

8278
# for fuzzing, read the comments in the fuzz/CMakeLists.txt file

dependencies/googletest

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)