在CMAKE中,我可以从依赖关系图中删除标头吗?
我有一个生成的标头文件,其中包含很多源文件,并且当这些源文件中的任何一个都更改时,可能会更改。但是,当一件事改变时,我不想重新编译所有内容。
而且应该不必重新编译。除了更改的一个源文件之外,对此生成的标头的更改应没有任何区别。因此,实际上没有必要具有依赖性。
是否可以从依赖关系图中排除此标头文件,以便源文件在更改时不会自动重新编译?
I have a generated header file that lots of source files include, and that may change when any one of those source files changes. But I don't want to recompile everything when one thing changes.
And it should be unnecessary to recompile. The changes to this generated header should make no difference to anything except the one source file that changed. So it is not actually necessary to have a dependency.
Is there a way to exclude this header file from the dependency graph, so that source files do not automatically recompile when it changes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论