jll63 / yomm2

Fast, orthogonal, open multi-methods. Solve the Expression Problem in C++17.
Boost Software License 1.0
343 stars 18 forks source link

Workaround on finding Boost #46

Closed FabienPean closed 2 months ago

FabienPean commented 2 months ago

This would be a workaround to #43. I wanted to do a clean-up and a full replacement of in-build install via https://github.com/boostorg/cmake, but I faced some incompatibility: it is not offering a valid Boost::headers target (each lib has to be linked Boost::mp11, CMake complains the dependent target boost_headers is not exported, FetchContent_Declare on Windows is slow.

In absence of valid full replacement, I propose this minor change to check for system/user provided Boost first before trying to deal with it as before.

jll63 commented 2 months ago

1.5.1 is out.

FabienPean commented 2 months ago

I made the PR for v1.5.1 https://github.com/microsoft/vcpkg/pull/38450 Once the current ongoing PRs are merged, it will be possible to delete the patch file on vcpkg side 👍