Is there anyway to stop automatic CMake execution

2019-06-17 09:51发布

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.

2条回答
成全新的幸福
2楼-- · 2019-06-17 10:16

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.

qtcreator options menu with auto-CMake disabled

(This is under Ubuntu 18.04)

查看更多
Root(大扎)
3楼-- · 2019-06-17 10:25

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.

查看更多
登录 后发表回答