mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
databases/leveldb: Convert to USES=cmake:testing
This commit is contained in:
parent
50aa28da97
commit
34e9638088
@ -9,10 +9,14 @@ WWW= https://github.com/google/leveldb
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
|
||||
USES= cmake compiler:c++11-lang localbase
|
||||
TEST_DEPENDS= benchmark>=0:devel/benchmark \
|
||||
googletest>=0:devel/googletest
|
||||
|
||||
USES= cmake:testing compiler:c++11-lang localbase:ldflags
|
||||
|
||||
CMAKE_OFF= LEVELDB_BUILD_TESTS
|
||||
CMAKE_ON= BUILD_SHARED_LIBS LEVELDB_BUILD_BENCHMARKS LEVELDB_INSTALL
|
||||
CMAKE_TESTING_ON= LEVELDB_BUILD_TESTS
|
||||
USE_CXXSTD= c++11
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
|
25
databases/leveldb/files/patch-CMakeLists.txt
Normal file
25
databases/leveldb/files/patch-CMakeLists.txt
Normal file
@ -0,0 +1,25 @@
|
||||
--- 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)
|
||||
|
Loading…
Reference in New Issue
Block a user