<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi everyone,<div class=""><br class=""></div><div class="">I’m trying to achieve something relatively simple:</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">I’m trying to create a Swift Package that contains those files, so I can include them in a project.</div><div class=""><br class=""></div><div class="">I made a module.modulemap:</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="color: #ba2da2" class="">module</span> FinBar {</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(209, 47, 27); background-color: rgb(255, 255, 255);" class=""><span style="color: #000000" class="">&nbsp; &nbsp; </span><span style="color: #ba2da2" class="">header</span><span style="color: #000000" class=""> </span>"fin_bar.h"</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(209, 47, 27); background-color: rgb(255, 255, 255);" class=""><span style="color: #000000" class="">&nbsp; &nbsp; </span><span style="color: #ba2da2" class="">link</span><span style="color: #000000" class=""> </span>finbar</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(186, 45, 162); background-color: rgb(255, 255, 255);" class=""><span style="color: #000000" class="">&nbsp; &nbsp; </span>export<span style="color: #000000" class=""> *</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">}</div><div class=""><br class=""></div><div class=""><b class="">swift build</b> fails as it cannot find the library to link it.</div><div class=""><br class=""></div><div class="">Any suggestions?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Evtim</div></body></html>