[CMake] Controlling the targets in an export set

2014-07-23 Thread Adar Dembo
I have a project that generates a shared library foo. As part of the build, the bar1, bar2, and bar3 static archives are created, and eventually, foo is linked against all of them. Thus, the project's sole deliverable is libfoo.so; all the necessary symbols from the bar1..bar3 archives are found wi

Re: [CMake] About the FindCUDA.cmake module ande Separate Compilation

2014-07-23 Thread James Bigler
The CUDA_NVCC_FLAGS variable is a list not a string. You also have to turn CUDA_SEPARABLE_COMPILATION on. Try this list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_30,code=sm_30 -rdc=true) set( CUDA_SEPARABLE_COMPILATION ON) On Thu, Jul 17, 2014 at 8:07 AM, Notargiacomo Thibault wrote: > De

Re: [CMake] How to get a list of all the static libraries that a target will link against ?

2014-07-23 Thread Glenn Coombs
I think I have found a way to work round this. Instead of trying to get a list of all the static libraries that a target will link against I will modify the various libraries so that they add their library dependencies like this: target_link_libraries(mtx_wrapper PUBLIC $<$,SHARED_LIBRARY>:-