Add SECURED flag to SimpleClientServer build 73/24573/4
authorMats Wichmann <mats@linux.com>
Wed, 4 Apr 2018 13:56:13 +0000 (07:56 -0600)
committerMats Wichmann <mats@linux.com>
Tue, 29 May 2018 15:30:57 +0000 (15:30 +0000)
The code in this sample contains #ifdef SECURED,
but the flag is not set during building even if
SECURED mode is selected.

Change-Id: Ied64c34db0437736aaaac4c88d0b53037639a34a
Signed-off-by: Mats Wichmann <mats@linux.com>
resource/csdk/stack/samples/linux/SimpleClientServer/SConscript

index 79702b8..7742c3d 100644 (file)
@@ -66,6 +66,7 @@ if target_os not in ['windows']:
     samples_env.PrependUnique(LIBS=['m'])
 
 if samples_env.get('SECURED') == '1':
+    samples_env.AppendUnique(CPPDEFINES=['SECURED'])
     samples_env.AppendUnique(LIBS=['mbedtls'])
 
 samples_env.AppendUnique(CPPDEFINES=['TB_LOG'])