diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2018-05-04 16:07:12 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2018-05-04 17:35:49 +0200 |
commit | 39d9e217a22901892647499ee695ba472a111d25 (patch) | |
tree | d3675e37e313b3e03918da06c81ceb79f0018c77 /test/libapt/CMakeLists.txt | |
parent | bd97dd6e69a537d1839999011e68a92ef1d063a5 (diff) |
Fix build with new gtest
Still allow the older one to be used.
Closes: #897149
Diffstat (limited to 'test/libapt/CMakeLists.txt')
-rw-r--r-- | test/libapt/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libapt/CMakeLists.txt b/test/libapt/CMakeLists.txt index 86c0b28b5..00425d7f4 100644 --- a/test/libapt/CMakeLists.txt +++ b/test/libapt/CMakeLists.txt @@ -16,7 +16,7 @@ if(NOT GTEST_FOUND AND EXISTS ${GTEST_ROOT}) set(GTEST_LIBRARIES "-lgtest") set(GTEST_DEPENDENCIES "gtest") set(GTEST_FOUND TRUE) - find_path(GTEST_INCLUDE_DIRS NAMES gtest/gtest.h) + find_path(GTEST_INCLUDE_DIRS NAMES gtest/gtest.h PATHS ${GTEST_ROOT}/include) message(STATUS "Found GTest at ${GTEST_ROOT}, headers at ${GTEST_INCLUDE_DIRS}") endif() |