From 09ef25bd0da397cb554ac8d97608ee4f08ef541f Mon Sep 17 00:00:00 2001 From: "Palmero, Antonio" Date: Fri, 8 Sep 2017 17:20:42 +0200 Subject: [PATCH] =?UTF-8?q?Add=20support=20to=20C=20and=20C++=20files=20in?= =?UTF-8?q?=20=E2=80=98Compile=20sources=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously the Compile Sources section was empty because it was not able to recognize the file extension. --- Sources/XcodeGenKit/PBXProjGenerator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/XcodeGenKit/PBXProjGenerator.swift b/Sources/XcodeGenKit/PBXProjGenerator.swift index bf101b57..e70d3d6f 100644 --- a/Sources/XcodeGenKit/PBXProjGenerator.swift +++ b/Sources/XcodeGenKit/PBXProjGenerator.swift @@ -429,7 +429,7 @@ public class PBXProjGenerator { } if let fileExtension = path.extension { switch fileExtension { - case "swift", "m": return .sources + case "swift", "m", "cpp": return .sources case "h", "hh", "hpp", "ipp", "tpp", "hxx", "def": return .headers case "xcconfig": return nil default: return .resources