[cmake-developers] [CMake 0014201]: FindCUDA does not forward include directories assigned by target_include_directories()

Brad King brad.king at kitware.com
Tue Jun 4 10:53:15 EDT 2013


Stephen,

On 06/04/2013 10:49 AM, Mantis Bug Tracker wrote:
> http://www.cmake.org/Bug/view.php?id=14201 
> ====================================================================== 
> Summary:                    FindCUDA does not forward include directories
> assigned by target_include_directories()
> Description: 
> I switched from directory-based to target-based include directories and NVCC
> does not get the include directories assigned to the target. I assume the
> problem is, that when cuda_add_library() or cuda_add_executable() is called,
> this information is not yet available since target_include_directories() can
> only be called on an already existing target which is after the cuda_add_...()
> calls.

I think your $<TARGET_PROPERTY:INCLUDE_DIRECTORIES> generator expression
work will be useful here, no?

-Brad



More information about the cmake-developers mailing list