8c47c3b2670da7baed490b1e762ae860c983c2b8
[AGL/meta-agl.git] / meta-security / recipes-security / cynara / cynara / 0003-Avoid-warning-when-compiling-without-smack.patch
1 From 6ad54c5e732e7cf0a29f29f48fa757e3e56d6860 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Jos=C3=A9=20Bollo?= <jose.bollo@iot.bzh>
3 Date: Thu, 25 Jan 2018 11:38:16 +0100
4 Subject: [PATCH 3/6] Avoid warning when compiling without smack
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 When DB_FILES_SMACK_LABEL is not defined, cmake complains
10 with the following message:
11
12 >  -- Checking for modules ''
13 >  Please specify at least one package name on the command line.
14
15 Change-Id: Ie837cae81114d096f951ec0ee4ada4173fb60190
16 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
17 ---
18  src/admin/CMakeLists.txt | 10 +++++-----
19  1 file changed, 5 insertions(+), 5 deletions(-)
20
21 diff --git a/src/admin/CMakeLists.txt b/src/admin/CMakeLists.txt
22 index e4f354a..38b8669 100644
23 --- a/src/admin/CMakeLists.txt
24 +++ b/src/admin/CMakeLists.txt
25 @@ -23,12 +23,12 @@ IF (DB_FILES_SMACK_LABEL)
26     SET(SMACK "smack")
27     SET(LIBSMACK "libsmack")
28     ADD_DEFINITIONS("-DDB_FILES_SMACK_LABEL=\"${DB_FILES_SMACK_LABEL}\"")
29 -ENDIF (DB_FILES_SMACK_LABEL)
30  
31 -PKG_CHECK_MODULES(CYNARA_ADMIN_API_DEP
32 -    REQUIRED
33 -    ${LIBSMACK}
34 -    )
35 +   PKG_CHECK_MODULES(CYNARA_ADMIN_API_DEP
36 +      REQUIRED
37 +      ${LIBSMACK}
38 +   )
39 +ENDIF (DB_FILES_SMACK_LABEL)
40  
41  SET(CYNARA_LIB_CYNARA_ADMIN_PATH ${CYNARA_PATH}/admin)
42  
43 -- 
44 2.14.3
45