I am trying to use Boost's dynamic_bitset class, my project currently uses Conan to get its dependencies and CMake to build. I added Boost to Conan's requires and then I used CMake to find_package(Boost REQUIRED) and target_link_libraries(MyProject PRIVATE boost::boost).
When I call conan install . it installs boost and then when I configure with CMake, it finds boost with all the header files etc.
When I build the project however, there is a chain of linked header files that ends with #include <boost/compute/cl/hpp>. This in turn tries to #include <CL/cl.h> which does not exist on my system, I can try and force define APPLE to try and #include <OpenCL/cl.h> instead, but again it doesnt appear to exist for me.
I am using WSL (v2.2.4) Ubuntu (v 24.04) to both build and run the application.
Why can I not find cl.h, why do I need it and what can I do to fix this?
I am trying to use Boost's dynamic_bitset class, my project currently uses Conan to get its dependencies and CMake to build. I added Boost to Conan's requires and then I used CMake to
find_package(Boost REQUIRED)
andtarget_link_libraries(MyProject PRIVATE boost::boost)
. When I call conan install . it installs boost and then when I configure with CMake, it finds boost with all the header files etc.When I build the project however, there is a chain of linked header files that ends with
#include <boost/compute/cl/hpp>
. This in turn tries to#include <CL/cl.h>
which does not exist on my system, I can try and force define APPLE to try and#include <OpenCL/cl.h>
instead, but again it doesnt appear to exist for me.I am using WSL (v2.2.4) Ubuntu (v 24.04) to both build and run the application.
Why can I not find cl.h, why do I need it and what can I do to fix this?
Thanks :)