Add support to C and C++ files in ‘Compile sources’

Previously the Compile Sources section was empty because it was not able
to recognize the file extension.
This commit is contained in:
Palmero, Antonio
2017-09-08 17:21:33 +02:00
parent a4f47e9a3a
commit 09ef25bd0d
+1 -1
View File
@@ -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