From aa595440786dcd84cbca81410c76c0b170b3abac Mon Sep 17 00:00:00 2001 From: James Bigler Date: Mon, 5 Dec 2011 16:29:28 -0700 Subject: Reset dependency file list when a dependency disappeared. Fix a long outstanding bug when a file in the dependency list wasn't found. This bug wouldn't reset the dependencies, so the makefile would still want the missing file when building. The work around was to configure twice, but this is no longer necessary. --- Modules/FindCUDA.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake index d5ef430..f696f2e 100644 --- a/Modules/FindCUDA.cmake +++ b/Modules/FindCUDA.cmake @@ -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) -- cgit v0.12