[tool]Fix the issue where using the command "scons --target=eclipse" would rename the project name to "project".

This commit is contained in:
yans
2026-02-06 18:06:24 +08:00
committed by Rbb666
parent d8546a9a0f
commit dc1c5b4ba3

View File

@@ -869,7 +869,8 @@ def GenTargetProject(program = None):
if GetOption('target') == 'eclipse': if GetOption('target') == 'eclipse':
from targets.eclipse import TargetEclipse from targets.eclipse import TargetEclipse
TargetEclipse(Env, GetOption('reset-project-config'), GetOption('project-name')) project_name = os.path.basename(Dir('#').abspath)
TargetEclipse(Env, GetOption('reset-project-config'), project_name)
if GetOption('target') == 'codelite': if GetOption('target') == 'codelite':
from targets.codelite import TargetCodelite from targets.codelite import TargetCodelite