amgcl icon indicating copy to clipboard operation
amgcl copied to clipboard

Installing with VCPKG

Open ArturSalamatin opened this issue 1 year ago • 4 comments

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

ArturSalamatin avatar Aug 14 '22 08:08 ArturSalamatin

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.

ddemidov avatar Aug 14 '22 14:08 ddemidov

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?

ArturSalamatin avatar Aug 14 '22 19:08 ArturSalamatin

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

ddemidov avatar Aug 15 '22 16:08 ddemidov

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

ArturSalamatin avatar Aug 29 '22 15:08 ArturSalamatin