summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-12-06 20:07:48 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-12-06 20:07:48 (GMT)
commit35017df53ccd66fd6b73cdc2608ede5dfadfa4bb (patch)
tree9f99b6ded4cd2d78460b66d79e6cd705a02cbf82 /Modules
parent386cf3c593ad425fea9b2bddf5ee34d8d36dfe15 (diff)
parentaa595440786dcd84cbca81410c76c0b170b3abac (diff)
downloadCMake-35017df53ccd66fd6b73cdc2608ede5dfadfa4bb.zip
CMake-35017df53ccd66fd6b73cdc2608ede5dfadfa4bb.tar.gz
CMake-35017df53ccd66fd6b73cdc2608ede5dfadfa4bb.tar.bz2
Merge topic 'topics/FindCUDA/linux-double-build'
aa59544 Reset dependency file list when a dependency disappeared.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindCUDA.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake
index 4b176f1..a67e2e0 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)