add error check for qtcreator&netbeans project file generators to quit early if cmake fails.

This commit is contained in:
Campbell Barton
2013-01-07 14:25:26 +00:00
parent c598a306c4
commit d22c8cfca3
3 changed files with 15 additions and 2 deletions

View File

@@ -149,14 +149,20 @@ def cmake_advanced_info():
raise Exception("Unknown make program %r" % make_exe)
os.system(cmd)
return join(CMAKE_DIR, ".cproject")
includes = []
defines = []
create_eclipse_project()
project_path = create_eclipse_project()
if not exists(project_path):
print("Generating Eclipse Prokect File Failed: %r not found" % project_path)
return None, None
from xml.dom.minidom import parse
tree = parse(join(CMAKE_DIR, ".cproject"))
tree = parse(project_path)
# to check on nicer xml
# f = open(".cproject_pretty", 'w')