[CMake] enable_language(CUDA) and long command lines on windows

2019-04-08 Thread JR Cary
Regarding the previous email, below The method of library construction is to first create an object library with add_library(${libname}obj OBJECT ${${LIBNAME}_SOURCES} ${${LIBNAME}_CUDASRCS}) then to create the actual library with add_library(${libname} $) and I have tried setting: se

[CMake] enable_language(CUDA) and long command lines on windows

2019-04-06 Thread JR Cary
Porting our cmake build system to use enable_language(CUDA). This is a complex computational application that make use of many libraries.  Upon doing this, add_executable ended up generating a link line of 9455 chars, causing Windows cmd to fail to execute it.  In addition, the final link used