From 13a4530853df40a44e4c5d101533fbf02653fa93 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Mon, 5 Dec 2016 17:07:21 +0100 Subject: [PATCH] build: Fix to also support SECURED=0 Note, for later it would be nice to test booleans instead of strings. Change-Id: I069d865c6e2cc6a80a812e60ab278af15b7eaa85 Origin: https://gerrit.iotivity.org/gerrit/#/c/15163/ Signed-off-by: Philippe Coval --- build_common/SConscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_common/SConscript b/build_common/SConscript index 5236e04..e00a628 100644 --- a/build_common/SConscript +++ b/build_common/SConscript @@ -338,10 +338,10 @@ elif env.get('ROUTING') == 'EP': libs = [] if env.get('WITH_TCP'): defines.append('-DTCP_ADAPTER=1') - if env.get('SECURED'): + if env.get('SECURED') == '1': defines.append('-D__WITH_TLS__=1') -if env.get('SECURED'): +if env.get('SECURED') == '1': libs.append('-locpmapi') defines.append('-D_WITH_DTLS_=1') -- 2.7.4