From 27a199e96d21019e379f012475bb11ad1c677330 Mon Sep 17 00:00:00 2001 From: Julian Büning Date: Sun, 2 Jan 2022 17:22:41 +0100 Subject: CMake: include GTest include hint for 1.8.0+ Later versions of googletest also ship googlemock alongside googletest. Thus, the include directory we are looking for is located in a subdirectory. The source directory, however, does not change as googletest/CMakeLists.txt references variables set in CMakeLists.txt of the root directory and is not intended to be included directly. --- unittests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'unittests') diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index aff9d26e..8f5d2c62 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -96,6 +96,7 @@ else() HINTS "${GTEST_SRC_DIR}/include" + "${GTEST_SRC_DIR}/googletest/include" NO_DEFAULT_PATH -- cgit 1.4.1