Stephen Sorley 6442709bae FindCUDA: Fix for broken cuda_compile* commands.
The macros CUDA_COMPILE, CUDA_COMPILE_PTX, CUDA_COMPILE_FATBIN, and
CUDA_COMPILE_CUBIN were broken by commit 7ded655 (FindCUDA: Take NVCC
include directories from target properties, 2016-08-16).  This bug is
due to the fact that all of these macros call CUDA_WRAP_SRCS with a
target name that's not an actual target, causing the new generator
expressions to fail.

Fix the bug by changing these macros to pass "PHONY" to CUDA_WRAP_SRCS.
Now, when CUDA_WRAP_SRCS sees "PHONY", it falls back to the old behavior
of populating the include directories and compile definitions from
directory properties, instead of using target generator expressions.
2016-08-31 11:52:43 -04:00
..
2016-03-09 09:42:18 -05:00
2016-07-28 00:41:13 +02:00
2016-07-28 00:41:13 +02:00
2016-07-28 00:41:13 +02:00
2016-07-28 00:41:13 +02:00
2016-07-28 00:41:13 +02:00
2016-07-28 00:41:13 +02:00
2016-07-28 00:41:13 +02:00
2016-07-13 09:15:16 -04:00
2016-07-06 09:36:10 -04:00
2016-07-28 00:41:13 +02:00
2016-07-28 00:41:13 +02:00
2016-06-08 12:44:03 -04:00
2016-07-28 00:41:13 +02:00
2016-07-28 00:41:13 +02:00
2016-07-28 00:41:13 +02:00
2016-07-28 00:41:13 +02:00

See the "Find Modules" section of the cmake-developer(7) manual page.

For more information about how to contribute modules to CMake, see this page:
https://cmake.org/Wiki/CMake:Module_Maintainers