Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there anyway to stop automatic CMake execution in Qt Creator 4.0?

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.

like image 703
flatline Avatar asked May 25 '16 15:05

flatline


People also ask

Does Qt Creator support CMake?

You can use CMake from Qt Creator to build applications for the desktop, as well as mobile and embedded devices. You can also build single files to test your changes. Qt Creator automatically detects the CMake executable specified in the PATH .

What is difference between Qmake and CMake?

Both are build systems, but they're not very similar at all. If your project uses Qt, you're probably best off using qmake. CMake is more generic, and fits pretty much any type of project. Both qmake and CMake generate a Makefile, which is read by make to build the project.

What is CMakeLists TXT user?

- Addresses : google#862 - `CMakeLists. txt. user` is a XML file created by Qt-Creator if the benchmark project is loaded into Qt-Creator using the `CMakeLists. txt` file.


2 Answers

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.

like image 58
Th. Thielemann Avatar answered Sep 22 '22 08:09

Th. Thielemann


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)

like image 31
superjax Avatar answered Sep 20 '22 08:09

superjax