aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-28 13:15:37 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-28 14:50:05 +0200
commit651a8c3ec03a2e8dff43381d42a7586785623088 (patch)
tree22e16b7b0599cc5945b27e2310cb54f8eaaa1773 /CMakeLists.txt
parentf25aaab75f97e420c4eeda7bcb5dd591f3de5213 (diff)
downloadayatana-indicator-session-651a8c3ec03a2e8dff43381d42a7586785623088.tar.gz
ayatana-indicator-session-651a8c3ec03a2e8dff43381d42a7586785623088.tar.bz2
ayatana-indicator-session-651a8c3ec03a2e8dff43381d42a7586785623088.zip
CMakeLists.txt: Check for path variation on where to find googletest source files.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 80a2ec1..c9a76fb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,7 +61,12 @@ include_directories (${CMAKE_CURRENT_BINARY_DIR}/src)
# testing & coverage
if (${ENABLE_TESTS})
- 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 ()