summaryrefslogtreecommitdiff
path: root/pcr/qtkeychain/prefer-qt4.patch
blob: 0e264aad1a394a79a926c7e58ecc6da9173460f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aba9032..4de64c8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,8 +11,10 @@ set(QTKEYCHAIN_SOVERSION 0)
 set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${PROJECT_SOURCE_DIR}/cmake/Modules")
 include(GNUInstallDirs)
 
-# try Qt5 first, and prefer that if found
-find_package(Qt5Core QUIET)
+# try Qt5 first, and prefer that if found, unless BUILD_WITH_QT4 is set
+if (NOT BUILD_WITH_QT4)
+  find_package(Qt5Core QUIET)
+endif()
 if (Qt5Core_FOUND)
   if(UNIX AND NOT APPLE)
     find_package(Qt5DBus REQUIRED)