ddemidov/amgcl

Installing with VCPKG

ArturSalamatin opened this issue · 4 comments

Is there any way to install and build the AMGCL library via vcpkg?

Not that I know of. I never worked with vcpkg, but if you know how to set it up, then I'll gladly accept a pull request.

I have found an article about this
https://devblogs.microsoft.com/cppblog/registries-bring-your-own-libraries-to-vcpkg/?ranMID=46131&ranEAID=a1LgFw09t88&ranSiteID=a1LgFw09t88-5jqkFJXbG_btcd0RojAjEg&epi=a1LgFw09t88-5jqkFJXbG_btcd0RojAjEg&irgwc=1&OCID=AID2200057_aff_7806_1243925&tduid=%28ir__lnw1wd99n9kf6xfqm99hkpgkpf2xvaeupmczkc0a00%29%287806%29%281243925%29%28a1LgFw09t88-5jqkFJXbG_btcd0RojAjEg%29%28%29&irclickid=_lnw1wd99n9kf6xfqm99hkpgkpf2xvaeupmczkc0a00

The first point that I think of is that the library (to the best of my knowledge) must not be header only, so it could be compiled in a static library... In the examples in the article, the projects have their declarations and definitions in separate files, cpp and h.

Can this be done with the amgcl library?

Found an interesting discussion here: microsoft/vcpkg#995, which contains a link to the list of header-only vcpkg libraries. Maybe you could get some examples/ideas there.

Sorry, missed your reply.
I shall have a look some time later!