From 3871ff0962cbf21a480f9f81e88d7df7a8a5d778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Fri, 18 Aug 2023 22:33:18 +0200 Subject: [PATCH] Don't build the googlemock subproject, only the main googletest library --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 51c1eb6..36bad6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -459,6 +459,8 @@ if (SQLITECPP_BUILD_TESTS) if (NOT EXISTS "${PROJECT_SOURCE_DIR}/googletest/CMakeLists.txt") message(FATAL_ERROR "Missing 'googletest' submodule! Either use 'git submodule init' and 'git submodule update' to get googletest according to the README, or deactivate unit tests with -DSQLITECPP_BUILD_TESTS=OFF") endif () + # don't build the googlemock subproject, only the main googletest library + set(BUILD_GMOCK OFF CACHE BOOL "Builds the googlemock subproject") add_subdirectory(googletest) include_directories("${PROJECT_SOURCE_DIR}/googletest/googletest/include")