summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Akulich <akulichalexander@gmail.com>2019-11-08 22:23:05 +0300
committerAlexander Akulich <akulichalexander@gmail.com>2019-11-09 01:09:11 +0300
commit96e3afecb811da141e7badef834282fff8f4fcf7 (patch)
treecb45d59540f3664dfe0a60eada240782f1ed6306
parentce34fcf4cc626679d924caeb141f48ed263609dd (diff)
CMake/ServiceConfig.cmake: Correctly find dependencies (the base lib)
-rw-r--r--TelepathyQt/TelepathyQtServiceConfig.cmake.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/TelepathyQt/TelepathyQtServiceConfig.cmake.in b/TelepathyQt/TelepathyQtServiceConfig.cmake.in
index 687435b6..17666c5a 100644
--- a/TelepathyQt/TelepathyQtServiceConfig.cmake.in
+++ b/TelepathyQt/TelepathyQtServiceConfig.cmake.in
@@ -10,7 +10,10 @@ set(TELEPATHY_QT@QT_VERSION_MAJOR@_SERVICE_VERSION_MICRO @TP_QT_MICRO_VERSION@)
set(TELEPATHY_QT@QT_VERSION_MAJOR@_SERVICE_VERSION_NANO @TP_QT_NANO_VERSION@)
set(TELEPATHY_QT@QT_VERSION_MAJOR@_SERVICE_VERSION @PACKAGE_VERSION@)
-find_package(TelepathyQt@QT_VERSION_MAJOR@)
+# Find the dependencies
+include(CMakeFindDependencyMacro)
+
+find_dependency(TelepathyQt@QT_VERSION_MAJOR@)
# set the directories
if(TARGET TelepathyQt@QT_VERSION_MAJOR@::Service)