summaryrefslogtreecommitdiffstats
path: root/meta-ivi-common/recipes-automotive/automotive-message-broker/automotive-message-broker/0001-Fix-build-issues-while-bitbake-without-meta-qt5-laye.patch
blob: 5e77f6ab48e096a56b81e5c6ed7bc2d7ff7a836c (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
27
28
29
30
From aff92c907e8fc96b1edf96aa061843bce71244ca Mon Sep 17 00:00:00 2001
From: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Date: Mon, 16 Nov 2015 20:22:06 +0900
Subject: [PATCH] Fix build issues while bitbake without meta-qt5 layer

Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
---
 tests/CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index cea4807..900bdc5 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -11,6 +11,7 @@ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/gendb.sh ${CMAKE_CURRENT_SOURCE_DIR}
 
 install (PROGRAMS ${amb_tests} DESTINATION bin)
 
+if(qtmainloop OR qt_bindings)
 find_package(Qt5Network)
 find_package(Qt5Core)
 
@@ -28,3 +29,4 @@ if(Qt5Network_FOUND)
   add_executable(testProtocolClient testProtocolClient.cpp testProtocolCommon.h)
   target_link_libraries(testProtocolClient ${link_libraries} amb -L${CMAKE_CURRENT_BINARY_DIR}/lib amb-plugins-common amb-json-protocol -L${CMAKE_CURRENT_BINARY_DIR}/plugins/common ${QT_LIBRARIES})
 endif()
+endif(qtmainloop OR qt_bindings)
-- 
1.9.1