summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-09-14 18:04:29 +0200
committerGitHub <noreply@github.com>2018-09-14 18:04:29 +0200
commite099fea259d85a44f533821c5337cdb0f91c00cc (patch)
tree2bd128c36b4496cbdf400d54983eb4b5beebc5d3
parent67477f1a067879cb0e137473ff874e84db114a75 (diff)
parent35e5ba84d324c575ca396a961fd51cc248eeb3ae (diff)
Merge pull request #22026 from fire/scons_vsproj_17843
Fix #17843 describing inability to generate vs projects without being…
-rw-r--r--methods.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/methods.py b/methods.py
index 1bc10954ba..00c477635e 100644
--- a/methods.py
+++ b/methods.py
@@ -578,6 +578,9 @@ def generate_vs_project(env, num_jobs):
release_targets = ['bin\\godot.windows.opt.32.exe'] + ['bin\\godot.windows.opt.64.exe']
release_debug_targets = ['bin\\godot.windows.opt.tools.32.exe'] + ['bin\\godot.windows.opt.tools.64.exe']
targets = debug_targets + release_targets + release_debug_targets
+ if not env.get('MSVS'):
+ env['MSVS']['PROJECTSUFFIX'] = '.vcxproj'
+ env['MSVS']['SOLUTIONSUFFIX'] = '.sln'
env.MSVSProject(
target=['#godot' + env['MSVSPROJECTSUFFIX']],
incs=env.vs_incs,