I would like to use OBJECT libraries with CUDA.
If I try
cuda_add_library(foo OBJECT <some .cpp files> <some .cu files>)
I get
CMake Error at
/opt/contrib-clangcxx11/cmake-3.2.2-ser/share/cmake-3.2/Modules/FindCUDA.cmake:1518
(add_library):
OBJECT library "txsbaseobj" contains:
txsbaseobj_generated_TxsGpuInterpolator.cu.o
txsbaseobj_generated_TxsBaseTestKernels.cu.o
txsbaseobj_intermediate_link.o
Is there a standard way of dealing with this?
Thx.......
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake