[swift-users] Package Manager: Link to a static library.
Evtim Papushev
e.papushev at me.com
Wed Oct 11 05:00:00 CDT 2017
Hi everyone,
I’m trying to achieve something relatively simple:
I have a C wrapper around C++ code that is built with CMake. So, I have a set of static libraries (.a files) and one header file.
I’m trying to create a Swift Package that contains those files, so I can include them in a project.
I made a module.modulemap:
module FinBar {
header "fin_bar.h"
link finbar
export *
}
swift build fails as it cannot find the library to link it.
Any suggestions?
Thanks,
Evtim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20171011/080b27bc/attachment.html>
More information about the swift-users
mailing list