Skip to content
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

Error when using external cl headers #184

Open
isuruf opened this issue Oct 2, 2022 · 2 comments
Open

Error when using external cl headers #184

isuruf opened this issue Oct 2, 2022 · 2 comments

Comments

@isuruf
Copy link

isuruf commented Oct 2, 2022

CMake Error: install(EXPORT "OpenCLHeadersCppTargets" ...) includes target "HeadersCpp" which requires target "OpenCLHeaders" that is not in any export set.
CMake Error in CMakeLists.txt:
  export called with target "HeadersCpp" which requires target
  "OpenCLHeaders" that is not in any export set.

Here's how we invoke cmake
https://github.com/conda-forge/clhpp-feedstock/blob/65ec400d4f221776e11078c5903b4c56cc8edc83/recipe/build.sh#L6-L16

Any ideas on how to fix this?

@bashbaug
Copy link
Contributor

bashbaug commented Oct 3, 2022

Hello! The OpenCL C++ bindings (this repo) has a dependency on the OpenCL headers, which provides the target "OpenCLHeaders". Please see the build instructions and dependency information in the README:

https://github.com/KhronosGroup/OpenCL-CLHPP#build-instructions

Can you build and install the OpenCL headers before invoking CMake for the OpenCL C++ bindings? Note, you should not need the OpenCL ICD loader unless you are also building the examples, and it doesn't look like you are in the link above. Please let us know if this will work for you.

CC @MathiasMagnus in case I got any of this wrong - thanks!

@isuruf
Copy link
Author

isuruf commented Oct 3, 2022

Thanks for the reply. I do have the OpenCL headers installed in ${OPENCL_DIST_DIR}/include as mentioned in the build instructions. It used to work with clhpp=2.0.16, but not anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants