Projects
openEuler:Mainline
snappy
_service:tar_scm:remove-dependency-on-google-be...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:remove-dependency-on-google-benchmark-and-gmock.patch of Package snappy
From 14ccda0d6c228999c8d982a84562432cd7465743 Mon Sep 17 00:00:00 2001 From: hanxinke <hanxinke@huawei.com> Date: Tue, 7 Dec 2021 15:34:34 +0800 Subject: [PATCH] remove dependency on google benchmark and gmock Signed-off-by: hanxinke <hanxinke@huawei.com> --- CMakeLists.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 672561e..3127d9b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,7 +88,7 @@ option(BUILD_SHARED_LIBS "Build shared libraries(DLLs)." OFF) option(SNAPPY_BUILD_TESTS "Build Snappy's own tests." ON) -option(SNAPPY_BUILD_BENCHMARKS "Build Snappy's benchmarks" ON) +option(SNAPPY_BUILD_BENCHMARKS "Build Snappy's benchmarks" OFF) option(SNAPPY_FUZZING_BUILD "Build Snappy for fuzzing." OFF) @@ -288,25 +288,25 @@ if(SNAPPY_BUILD_TESTS) set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) set(install_gtest OFF) set(install_gmock OFF) - set(build_gmock ON) + set(build_gmock OFF) # This project is tested using GoogleTest. - add_subdirectory("third_party/googletest") + # add_subdirectory("third_party/googletest") # GoogleTest triggers a missing field initializers warning. - if(SNAPPY_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(SNAPPY_HAVE_NO_MISSING_FIELD_INITIALIZERS) + # if(SNAPPY_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(SNAPPY_HAVE_NO_MISSING_FIELD_INITIALIZERS) add_executable(snappy_unittest "") target_sources(snappy_unittest PRIVATE "snappy_unittest.cc" ) - target_link_libraries(snappy_unittest snappy_test_support gmock_main gtest) + target_link_libraries(snappy_unittest snappy_test_support gtest_main gtest) add_test( NAME snappy_unittest @@ -332,7 +332,7 @@ if(SNAPPY_BUILD_BENCHMARKS) # 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") + # add_subdirectory("third_party/benchmark") endif(SNAPPY_BUILD_BENCHMARKS) if(SNAPPY_FUZZING_BUILD) -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2