Skip to content

Commit

Permalink
Treat cpp extension in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jslap-ubi committed Sep 19, 2023
1 parent 4d24d96 commit 9e92b19
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 9e92b19

Please sign in to comment.