diff options
author | Joseph Brill <48932340+jcbrill@users.noreply.github.com> | 2024-10-20 11:11:33 (GMT) |
---|---|---|
committer | Joseph Brill <48932340+jcbrill@users.noreply.github.com> | 2024-10-20 11:11:33 (GMT) |
commit | da65616846b54e1e84d508823b58740dcbf9d3ca (patch) | |
tree | ff401b9b5cbb003843126cd284c45b2441ee66dc /SCons | |
parent | 705f579da7245e0fbb8a8640bebe909bd58d8f9c (diff) | |
download | SCons-da65616846b54e1e84d508823b58740dcbf9d3ca.zip SCons-da65616846b54e1e84d508823b58740dcbf9d3ca.tar.gz SCons-da65616846b54e1e84d508823b58740dcbf9d3ca.tar.bz2 |
Fix: normalize case for solution file extension and file name for string endswith test.
Diffstat (limited to 'SCons')
-rw-r--r-- | SCons/Tool/msvs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SCons/Tool/msvs.py b/SCons/Tool/msvs.py index 557590d..9cb28af 100644 --- a/SCons/Tool/msvs.py +++ b/SCons/Tool/msvs.py @@ -1489,11 +1489,11 @@ def _projectDSPNodes(env): projects = SCons.Util.flatten(projects) if len(projects) < 1: raise SCons.Errors.UserError("You must specify at least one project to create an MSVSSolution.") - sln_suffix = env.subst('$MSVSSOLUTIONSUFFIX') + sln_suffix = os.path.normcase(env.subst('$MSVSSOLUTIONSUFFIX')) dspnodes = [] for p in projects: node = env.File(p) - if str(node).endswith(sln_suffix): + if os.path.normcase(str(node)).endswith(sln_suffix): continue dspnodes.append(node) if len(dspnodes) < 1: |