Is there anyway to stop automatic CMake execution

2019-06-17 09:47发布

问题:

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)