mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
Merge topic 'topics/FindCUDA/linux-double-build'
aa59544 Reset dependency file list when a dependency disappeared.
This commit is contained in:
@@ -339,6 +339,8 @@ macro(CUDA_INCLUDE_NVCC_DEPENDENCIES dependency_file)
|
||||
# output depend on the dependency file itself, which should cause the
|
||||
# rule to re-run.
|
||||
if(CUDA_NVCC_DEPEND_REGENERATE)
|
||||
set(CUDA_NVCC_DEPEND ${dependency_file})
|
||||
#message("Generating an empty dependency_file: ${dependency_file}")
|
||||
file(WRITE ${dependency_file} "#FindCUDA.cmake generated file. Do not edit.\n")
|
||||
endif(CUDA_NVCC_DEPEND_REGENERATE)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user