mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 10:06:40 -04:00
25 lines
964 B
Text
25 lines
964 B
Text
--- CMakeLists.txt.orig 2021-02-23 20:54:37 UTC
|
|
+++ CMakeLists.txt
|
|
@@ -295,22 +295,6 @@ if(LEVELDB_BUILD_TESTS)
|
|
set(install_gmock OFF)
|
|
set(build_gmock ON)
|
|
|
|
- # This project is tested using GoogleTest.
|
|
- add_subdirectory("third_party/googletest")
|
|
-
|
|
- # This project uses Google benchmark for benchmarking.
|
|
- set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "" FORCE)
|
|
- set(BENCHMARK_ENABLE_EXCEPTIONS OFF CACHE BOOL "" FORCE)
|
|
- add_subdirectory("third_party/benchmark")
|
|
-
|
|
- # GoogleTest triggers a missing field initializers warning.
|
|
- if(LEVELDB_HAVE_NO_MISSING_FIELD_INITIALIZERS)
|
|
- set_property(TARGET gtest
|
|
- APPEND PROPERTY COMPILE_OPTIONS -Wno-missing-field-initializers)
|
|
- set_property(TARGET gmock
|
|
- APPEND PROPERTY COMPILE_OPTIONS -Wno-missing-field-initializers)
|
|
- endif(LEVELDB_HAVE_NO_MISSING_FIELD_INITIALIZERS)
|
|
-
|
|
function(leveldb_test test_file)
|
|
get_filename_component(test_target_name "${test_file}" NAME_WE)
|
|
|