Skip to content

Commit

Permalink
Fixed Generate_VCXProj
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan de Bruijn committed Sep 19, 2024
1 parent 94b2762 commit 2d5577a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions generate_vcxproj.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Vcxproj:
# configuration, platform
ImportGroupFmt = '\n'.join([
' <ImportGroup Label="PropertySheets" Condition="\'$(Configuration)|$(Platform)\'==\'{0}|{1}\'">',
' <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists(\'$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props\')" Label="LocalAppDataPlatform" />',
' <Import Project="$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props" Condition="exists(\'$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props\')" Label="LocalAppDataPlatform" />',
' </ImportGroup>'
])

Expand Down Expand Up @@ -192,12 +192,12 @@ def CreateProject(self):
project.append(' <Keyword>Win32Proj</Keyword>')
project.append('</PropertyGroup>')

project.append('<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />')
project.append('<Import Project="$(VCTargetsPath)\\Microsoft.Cpp.Default.props" />')
for p in self.Platforms:
for c in self.Configurations:
project.append(Vcxproj.ConfigTypePropertyGroup(c, p))

project.append('<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />')
project.append('<Import Project="$(VCTargetsPath)\\Microsoft.Cpp.props" />')
project.append('<ImportGroup Label="ExtensionSettings">')
project.append('</ImportGroup>')
project.append(' <ImportGroup Label="Shared">')
Expand All @@ -214,7 +214,7 @@ def CreateProject(self):

project.append('<ItemDefinitionGroup>')
project.append('</ItemDefinitionGroup>')
project.append('<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />')
project.append('<Import Project="$(VCTargetsPath)\\Microsoft.Cpp.targets" />')
project.append(' <ImportGroup Label="ExtensionTargets">')
project.append('</ImportGroup>')
project.append('<ProjectExtensions>')
Expand Down

0 comments on commit 2d5577a

Please sign in to comment.