summaryrefslogtreecommitdiff
path: root/package/qjson/0001-fix-Qt4-package-error-in-CMakeLists.txt.patch
blob: a9e34e4c268a522550fcb3915c7ca5c5e31f26bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 254858bbf443bded2e80480e9f9032ce166b923e Mon Sep 17 00:00:00 2001
From: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
Date: Fri, 2 Dec 2016 23:00:58 +0100
Subject: [PATCH] CMake, Qt4: check specifically for QtCore, fixes #96

Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 31d9987..2fde79f 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -62,7 +62,7 @@ IF (Qt5Core_FOUND)
 ELSE()
   MESSAGE ("Qt5 not found, searching for Qt4")
   # Find Qt4
-  FIND_PACKAGE( Qt4 4.5 REQUIRED )
+  FIND_PACKAGE( Qt4 4.5 REQUIRED QtCore)
   # QStringBuilder is supported since Qt 4.8 for both QString and QByteArray
   IF (NOT (${QT_VERSION_MINOR} STRLESS "8"))
     MESSAGE ("Enable QStringBuilder")
-- 
2.7.4