mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 20:49:41 +00:00
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.
This commit is contained in:
parent
e0bc42aa4f
commit
aa59544078
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user