package/vlc: backport upstream patches to fix compat function for static_assert
[buildroot-gz.git] / package / qjson / 0001-fix-Qt4-package-error-in-CMakeLists.txt.patch
blob6f7a9ba237738382d4dd2f37b5e1dbcceb93d14f
1 From 45ec86156819c0872d023b05001682a8d2d2dc25 Mon Sep 17 00:00:00 2001
2 From: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
3 Date: Sat, 6 Apr 2013 16:54:25 +0200
4 Subject: [PATCH] fix Qt4 package error in CMakeLists.txt
6 Avoid checking for uic executable by cmake as it results configure
7 time error if QtGui isn't installed.
9 Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
10 ---
11 CMakeLists.txt | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
14 diff --git a/CMakeLists.txt b/CMakeLists.txt
15 index adb65e9..81854b1 100644
16 --- a/CMakeLists.txt
17 +++ b/CMakeLists.txt
18 @@ -52,7 +52,7 @@ IF (Qt5Core_FOUND)
19 ELSE()
20 MESSAGE ("Qt5 not found, searching for Qt4")
21 # Find Qt4
22 - FIND_PACKAGE( Qt4 REQUIRED )
23 + FIND_PACKAGE( Qt4 COMPONENTS QtCore REQUIRED )
25 # Include the cmake file needed to use qt4
26 INCLUDE( ${QT_USE_FILE} )
27 --
28 2.1.1