diff options
author | Robert Tari <robert@tari.in> | 2021-05-04 18:24:50 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-05-04 18:24:50 +0200 |
commit | 5ffd6963a1187de5f753cad768658983538c0fbf (patch) | |
tree | 2a79210306c3a68b19a59473c61eedb10201baea | |
parent | 6d3a2b8d6b4ad6ad9d83310f6e088f30550f9bc8 (diff) | |
download | ayatana-indicator-datetime-5ffd6963a1187de5f753cad768658983538c0fbf.tar.gz ayatana-indicator-datetime-5ffd6963a1187de5f753cad768658983538c0fbf.tar.bz2 ayatana-indicator-datetime-5ffd6963a1187de5f753cad768658983538c0fbf.zip |
CMakeLists.txt: Fix GTest path
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9588e19..81950d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,7 +97,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 () |