-
Notifications
You must be signed in to change notification settings - Fork 208
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
Using find_package(CUDAQ REQUIRED) in CMake does not work #2513
Comments
I think I have resolved this for Patrick. Needed to add |
Yes, that works for me. |
@scothalverson I a use
|
It seems that |
Hey @diehlpk and @scothalverson . Try to add the following before set(CUDAQ_LIBRARY_MODE ON) Historically, there was some early implementation work that tried to expose CUDA-Q as a CMake language ( An interesting pattern that others will likely want to follow can be found in the cudaqx repo - separate compilation of host and qpu code. Checkout cmake/Modules/CUDA-QX.cmake there for a function that users can leverage to use |
Required prerequisites
Describe the bug
Using
find_package(CUDAQ REQUIRED)
in a CMake project results in the following errorSteps to reproduce the bug
Using the latest image and include include
find_package(CUDAQ REQUIRED)
in your CMake project.Expected behavior
I would assume that
CMAKE_CUDAQ_CREATE_SHARED_LIBRARY
should be set, since I am not sure what provide. It seems thatOn
orOff
does not work.Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
Suggestions
No response
The text was updated successfully, but these errors were encountered: