From 60b9e69630cdbf587a8ad34f2ed903da668459af Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 11 Aug 2023 19:27:42 -0700 Subject: [PATCH] build: pass `YAML_DEFINE_STATIC` to the CInterop (#398) While we would now build CYaml statically, we would fail to indicate to clang the library was meant to be used statically and not dynamically. This cleans up some linker warnings when building SPM. --- Package.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index b624d056..5b302c18 100644 --- a/Package.swift +++ b/Package.swift @@ -16,7 +16,8 @@ let package = Package( .target( name: "Yams", dependencies: ["CYaml"], - exclude: ["CMakeLists.txt"] + exclude: ["CMakeLists.txt"], + cSettings: [.define("YAML_DECLARE_STATIC")] ), .testTarget( name: "YamsTests",