-
Notifications
You must be signed in to change notification settings - Fork 96
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
CMake cannot find Boost (Windows 10) #267
Comments
Ok, so I fixed this error by adding the following lines to my project's CMakeLists.txt.
I now get a new error, but I will open a new issue for that one. You can close this issue. |
Boost is a particularly nasty library to depend on, hence I try to avoid it whenever possible. (The build process is a nightmare, but even if one consumes it from a package manager, it is the only library I know of that chose to have different CMake variable names for their find module and package config scripts.) I would advise using a package manager to consume Boost rather than pulling it in as an external dependency. On Windows I would advise using Vcpkg. One can build latest Boost issuing the following:
|
Given a try building using MSVC, I'm getting compilation errors (which is expected, as there is no CI for it). Consuming Boost passes (with hoardes of CMake warnings originating from FWIW, MSVC chokes on the template <typename KernelName,
typename Functor>
__attribute__((noinline)) void
instantiate_kernel(Functor f) noexcept {
/* The outlining compiler is expected to do some massage here or
around and to insert some calls to \c serialize_arg and so on */
f();
} resulting in
Until there is no CI in place, these errors are bound to happen. Unfortunately I do not have the capacity to implement Azure Devops CI pipelines. (It's got infinite CPU hours for CI/CD purposes of OSS libraries, it just takes someone to wire it up (and actual commitment from developers to fix regressions and not allow pipelines to fail). Supporting Windows through Clang only may be a smaller commitment, but that is a different subject. |
I have the prebuilt binaries installed and set the environment variable BOOST_ROOT.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: