Просмотр исходного кода

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

yans 3 недель назад
Родитель
Сommit
dc1c5b4ba3
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      tools/building.py

+ 2 - 1
tools/building.py

@@ -869,7 +869,8 @@ def GenTargetProject(program = None):
 
     if GetOption('target') == 'eclipse':
         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':
         from targets.codelite import TargetCodelite