telepathy-qt: CMake: Fix Qt GLib support detection

Alexandr Akulich kaffeine at kemper.freedesktop.org
Mon Sep 2 18:00:11 UTC 2019


Module: telepathy-qt
Branch: master
Commit: 1e9051ce3d28c7a8414bbe1682a9c3ce82438f7f
URL:    http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=1e9051ce3d28c7a8414bbe1682a9c3ce82438f7f

Author: Alexander Akulich <akulichalexander at gmail.com>
Date:   Fri Aug 30 00:23:32 2019 +0300

CMake: Fix Qt GLib support detection

---

 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 64ecfffa..22d8a7ef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -117,6 +117,7 @@ set(CMAKE_REQUIRED_DEFINITIONS "")
 # set the flags (-fPIE) here so that CHECK_CXX_SOURCE_COMPILES works properly if qt5 was built with
 # -reduce-locations
 set(CMAKE_REQUIRED_FLAGS "${TP_QT_EXECUTABLE_LINKER_FLAGS}")
+set(CMAKE_REQUIRED_LIBRARIES ${QT_QTCORE_LIBRARY})
 
 CHECK_CXX_SOURCE_COMPILES("
 #include <QtCore/QtGlobal>



More information about the telepathy-commits mailing list