MS Visual C++ #include dependencies

Does anyone know how to get Visual C++ to correctly recompile files that #include other files that have changed? It works correctly when a .c or .cpp file includes a .h file, but apparently the custom build rules for invoking nvcc on .cu files does not correctly trace dependencies.

I’m using Visual C++ 2008 on Vista.

Hit Ctrl-Alt-F7 whenever you modify such a file. Not the prettiest solution, but it works.