1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00
aports/testing/mongo-cxx-driver/no-mongo-tests.patch
2023-02-03 07:20:35 +01:00

22 lines
697 B
Diff

diff --git a/src/mongocxx/CMakeLists.txt b/src/mongocxx/CMakeLists.txt
index 7106040..e3456ce 100644
--- a/src/mongocxx/CMakeLists.txt
+++ b/src/mongocxx/CMakeLists.txt
@@ -208,7 +208,7 @@ else()
mongocxx_add_library(mongocxx_mocked "mongocxx-mocked" STATIC)
endif()
endif()
-if(ENABLE_TESTS)
+if(ENABLE_TESTING)
target_link_libraries(mongocxx_mocked PUBLIC bsoncxx_testing)
target_compile_definitions(mongocxx_mocked PUBLIC MONGOCXX_TESTING)
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
@@ -249,7 +249,7 @@ if(MONGOCXX_BUILD_STATIC)
endif()
mongocxx_install("${mongocxx_target_list}" "${mongocxx_pkg_dep}")
-if(ENABLE_TESTS)
+if(false)
add_subdirectory(test)
endif()