Skip to content

Commit 067afc5

Browse files
committed
[Xcodeproj] Add pkgconfig cflags to other_cflags
- https://bugs.swift.org/browse/SR-6212
1 parent 25ae857 commit 067afc5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/Xcodeproj/pbxproj().swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ func xcodeProject(
460460
if let pkgArgs = pkgConfigArgs(for: cTarget) {
461461
targetSettings.common.OTHER_LDFLAGS += pkgArgs.libs
462462
targetSettings.common.OTHER_SWIFT_FLAGS += pkgArgs.cFlags
463+
targetSettings.common.OTHER_CFLAGS += pkgArgs.cFlags
463464
}
464465
case let clangTarget as ClangTarget:
465466
hdrInclPaths.append("$(SRCROOT)/" + clangTarget.includeDir.relative(to: sourceRootDir).asString)

0 commit comments

Comments
 (0)