[英]How to 'touch' all files which include a particular header file?
So I have this big C++ project, and I have made changes to one header file. 因此,我有一个很大的C ++项目,并且对一个头文件进行了更改。 Therefore, I would need to recompile all source files that 'include' that header.
因此,我将需要重新编译“包括”该头文件的所有源文件。 Other than doing a text search on the entire project, is there any other way to 'touch' all files that include that header file?
除了在整个项目上进行文本搜索之外,还有其他方法可以“触摸”包括该头文件的所有文件吗? I am using Microsoft Visual C++ compiler.
我正在使用Microsoft Visual C ++编译器。
Update: I am not using Visual Studio. 更新:我不使用Visual Studio。 We use makefiles for compiling (for historical reasons).
我们使用makefile进行编译(出于历史原因)。
This feature is built-in into Visual Studio. 此功能是Visual Studio内置的。 As far as
据,直到...为止
VS should always, when prompted for building ( not rebuilding), rebuild the sources that include a modified header. 当提示生成( 不重建)时,VS应始终重建包含已修改标头的源。
For more information take a look at the documentation pages 有关更多信息, 请查看文档页面
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.