Skip to content

Commit

Permalink
Merge branch 'js/c-extension' into 'main'
Browse files Browse the repository at this point in the history
Treat cpp extension in makefile

See merge request Sharpmake/sharpmake!460
  • Loading branch information
jspelletier committed Sep 27, 2023
2 parents 063e8c7 + 9e92b19 commit 0403bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sharpmake.Generators/Generic/Makefile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ private string GenerateProject(
using (fileGenerator.Declare("objectFile", file.GetObjectFileName()))
using (fileGenerator.Declare("sourceFile", PathMakeUnix(file.FileNameProjectRelative)))
{
if (file.FileExtensionLower == ".c")
if (!project.SourceFilesCPPExtensions.Contains(file.FileExtensionLower))
{
fileGenerator.Write(Template.Project.ObjectRuleC);
}
Expand Down

0 comments on commit 0403bca

Please sign in to comment.