Przeglądaj źródła

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

yans 3 tygodni temu
rodzic
commit
dc1c5b4ba3
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      tools/building.py

+ 2 - 1
tools/building.py

@@ -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