diff options
3 files changed, 7 insertions, 5 deletions
diff --git a/xmake/plugins/project/vsxmake/vsproj/Xmake.xml b/xmake/plugins/project/vsxmake/vsproj/Xmake.xml index 8f2869b15..11dddabec 100644 --- a/xmake/plugins/project/vsxmake/vsproj/Xmake.xml +++ b/xmake/plugins/project/vsxmake/vsproj/Xmake.xml @@ -12,7 +12,7 @@ <Rule.DataSource> <DataSource Persistence="UserFile" Label="XmakeConfiguration"/> </Rule.DataSource> - + <BoolProperty Name="XmakeVerbose" DisplayName="Print verbose information" @@ -43,7 +43,7 @@ Category="Common" Description="When use 'compile' command to build selected files, add '--rebuild' flag to force rebuild files." Switch="rebuild" /> - + <StringProperty Name="XmakeCleanFlags" DisplayName="Clean flags" diff --git a/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj.filters/File.mpp(filempp) b/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj.filters/File.mpp(filempp) index 9aee25191..134ee2b62 100644 --- a/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj.filters/File.mpp(filempp) +++ b/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj.filters/File.mpp(filempp) @@ -1,3 +1,3 @@ - <None Include="#path#"> + <ClCompile Include="#path#"> <Filter>#dir#</Filter> - </None> + </ClCompile> diff --git a/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj/File.mpp(filempp) b/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj/File.mpp(filempp) index 6429fe3e9..7c435b1c6 100644 --- a/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj/File.mpp(filempp) +++ b/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj/File.mpp(filempp) @@ -1 +1,3 @@ - <None Include="#path#" /> + <ClCompile Include="#path#"> + <CompileAs>CompileAsCppModule</CompileAs> + </ClCompile> |
