scons: Move CPPPATH systemc_home to "src/systemc" folder (#617)

Files under src/systemc require the include path of systemc_home

Change-Id: Ibcbac2762259a0b997ac444b2c63a218c27af9ee
This commit is contained in:
Yu-Cheng Chang
2023-11-30 05:56:23 +08:00
committed by GitHub
parent a2e7bd4698
commit 57ba3fccb7
2 changed files with 4 additions and 7 deletions

View File

@@ -30,6 +30,9 @@ if not env['CONF']['USE_SYSTEMC']:
env.UseSystemcCheck(warn=True)
env.Append(CPPPATH=Dir('ext'))
systemc_home = Dir('#/src/systemc/ext/systemc_home')
env['ENV']['SYSTEMC_HOME'] = systemc_home.abspath
env.Append(CPPPATH=[systemc_home.Dir('include'),Dir('ext')])
SimObject('Tlm.py', sim_objects=[])