diff options
author | Robert Tari <robert@tari.in> | 2021-05-11 13:36:06 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-05-11 13:36:06 +0200 |
commit | 46148c9c2338f4ba75d8730be94285534ad74d9e (patch) | |
tree | d8f37c3352ab49e6de699b55c068b481d3ec4a5c | |
parent | 83110ae59c57054976ebdaee5bd18356d96dbbd4 (diff) | |
parent | b8d79bc73f9c59e864ae617b883cd8f264d6c3ed (diff) | |
download | ayatana-indicator-datetime-46148c9c2338f4ba75d8730be94285534ad74d9e.tar.gz ayatana-indicator-datetime-46148c9c2338f4ba75d8730be94285534ad74d9e.tar.bz2 ayatana-indicator-datetime-46148c9c2338f4ba75d8730be94285534ad74d9e.zip |
Merge branch 'tari01-pr/fix-gtest-path'
Attributes GH PR #35: https://github.com/AyatanaIndicators/ayatana-indicator-datetime/pull/35
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ca7d21..003df0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,7 +109,13 @@ include_directories (${CMAKE_CURRENT_BINARY_DIR}/include) # testing & coverage if (${ENABLE_TESTS}) pkg_check_modules (DBUSTEST REQUIRED dbustest-1>=14.04.0) - set (GTEST_SOURCE_DIR /usr/src/gtest/src) + + if (EXISTS /usr/src/googletest/src) + set (GTEST_SOURCE_DIR /usr/src/googletest/src) + else () + set (GTEST_SOURCE_DIR /usr/src/gtest/src) + endif () + set (GTEST_INCLUDE_DIR ${GTEST_SOURCE_DIR}/..) set (GTEST_LIBS -lpthread) enable_testing () |