-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boost's cmake config files are not compatible with clang-cl #62
Comments
We require an exact toolset match in the general case, even though some toolsets are link-compatible. For example, libraries built with VS2019 can be used from VS2022, but we still require an exact match. The way to link to the libraries you want is by setting the Boost_COMPILER variable to e.g. "vc143", analogously to how FindBoost.cmake works. |
FindBoost.cmake is managed by cmake right? Because, they provide the possibility to check against multiple tool chains, when they are provided via |
You're right that we don't support multiple toolchains in Boost_COMPILER. We probably should. |
Boost_COMPILER can be a list now, at least on the develop branch, via 534727e. I don't know yet if that will go into the 1.81 release, because it's already in beta. |
On Windows, clang-cl is compatible for compiling and linking against MSVC libraries.
In this case with MSVC compiled boost. Therefore, the cmake-config file should not report "NOTFOUND" if I actually want MSVC compiled boost libraries to be linked. Boost should also generally detect if clang is running in compatibility mode for msvc and simulate a build as with msvc as well.
The text was updated successfully, but these errors were encountered: