diff options
| author | ruki <[email protected]> | 2023-10-08 09:49:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-10-08 09:49:46 +0800 |
| commit | 27d740a3ebd2f326d93760f6eca196121dfd7092 (patch) | |
| tree | a03c4b2d13894f8c7135b7a3b8887d05783732bd | |
| parent | 70d1db94e95e8e9aa32d53e993554d90db605c83 (diff) | |
fix vsxmake for modules #4256
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> |
