@@ -63,20 +63,16 @@ add_subdirectory(benchmark)
6363
6464option (SIMDJSON_GOOGLE_BENCHMARKS "compile the Google Benchmark benchmarks" OFF )
6565if (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 )
8076endif ()
8177
8278# for fuzzing, read the comments in the fuzz/CMakeLists.txt file
0 commit comments