From 279757406edc888b9b1dce8fe637bf5b2af5f716 Mon Sep 17 00:00:00 2001 From: chunyexixiaoyu <834670833@qq.com> Date: Mon, 25 Apr 2022 16:26:27 +0800 Subject: [PATCH] APP_Framework/Framework/:solve the bug that compiling when the macro SUPPORT_CONNECTION_FRAMEWORK ' was not been chose --- APP_Framework/Framework/connection/SConscript | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/APP_Framework/Framework/connection/SConscript b/APP_Framework/Framework/connection/SConscript index 8b47a1a5d..4150ca779 100644 --- a/APP_Framework/Framework/connection/SConscript +++ b/APP_Framework/Framework/connection/SConscript @@ -12,10 +12,10 @@ objs = [] group = DefineGroup('connection', SOURCES, depend = [], CPPPATH = [cwd]) objs = objs + group list = os.listdir(cwd) - -for d in list: - path = os.path.join(cwd, d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(path, 'SConscript')) +if GetDepend(['SUPPORT_CONNECTION_FRAMEWORK']): + for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(path, 'SConscript')) Return('objs')