From: Phil Miller Date: Tue, 7 Feb 2023 20:42:40 +0000 (-0500) Subject: [PATCH] Don't install embedded copy of GTest X-Git-Tag: archive/raspbian/0.8.0+dfsg-9+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5d8b0f31f53ec0a825e61ee848e3eac1ccf62974;p=yaml-cpp.git [PATCH] Don't install embedded copy of GTest Goole Test itself documents the `INSTALL_GTEST` option as something that projects embedding it should set to `OFF`. Leaving it on means that projects downstream from libraries that embed it are likely to encounter conflicting copies. This is particularly annoying because GTest does not maintain anything like a stable API, and so causes builds to fail if include paths pick up an inappropriately installed copy ahead of the one that the code wanted. Fixes #488 Gbp-Pq: Name 1171.patch --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index bc239a5..1c60c07 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -2,6 +2,7 @@ find_package(Threads REQUIRED) set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) set(BUILD_MOCK ON CACHE BOOL "" FORCE) +set(INSTALL_GTEST OFF CACHE BOOL "" FORCE) set(CMAKE_POLICY_DEFAULT_CMP0048 NEW) if(YAML_USE_SYSTEM_GTEST)