CUDA object library with ambiguous object file names
This questions is about the integral CUDA support of CMake (i. e. using enable_language(CUDA)
).
When I have an object library add_library(lib OBJECT a.cpp b.cu)
using the generator Visual Studio 14 2015 Win64 the compilation will result in a.obj and b.cu.obj. Note the different file extensions!
$<TARGET_OBJECTS:lib>
will expand to a.obj b.obj
though, yielding a linker error in the end.
Can someone reproduce? TIA