Convenience libraries with CUDA

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Convenience libraries with CUDA

John R. Cary
This is partially a continuation of the issue described at,
where the hope was to be able to use object libraries with cuda.

There was no solution at that time, so we dropped this path,
but now this has become more important.

I tried to follow the path of using CUDA_WRAP_SRCS to get a
list of the object files that would be produced by an nvcc
compilation.  I did get those files, but then when I configure
in a clean directory, cuda_add_library fails with

CMake Error at ...:537 (add_library):
  Cannot find source file:


I suppose I could hack with a touch, but perhaps there is a
better way?

Thx....John Cary


Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: