I like some of the new CMake features with Qt Creator 4 but it re-runs cmake any time a relevant file changes. Is there any way to stop this? There seems to be no way to tell it to wait if I'm making a batch of changes, or just saving the file to not lose my work.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Yes, you can. It is called Autorun CMake.
In QtCreator just open Options -> Build & Run and go to tab CMake. Click one of the configured entries. The setting is on the bottom.
I verified this with version 4.1 on Linux.
回答2:
In version 4.8.1, it looks like this configuration has moved into Options->Kits then go to tab CMake and (on my machine) under Auto-Detected->System CMake the option appears on the bottom.
(This is under Ubuntu 18.04)