[Qt-creator] 4.0 doesn't clean nor rebuild in cmake projects

Tobias Hunger tobias.hunger at gmail.com
Sun Mar 27 20:22:35 CEST 2016


Am 27.03.2016 19:55 schrieb "Nikos Chantziaras" <realnc at gmail.com>:
>
> Yep, that worked. Thanks!
>
> Btw, do you know of a way to enable parallel builds globally? (For both
cmake as well as qmake.) Right now, for every project, I need to edit the
build step manually and add "-j4". Is there some global setting somewhere
that I'm just not seeing?

Qt Creator tries to be nice to building on the command line, so just do the
same you donthere: Export the MAKEFLAGS environment variable with the flags
you want each make call to have (-j4 in your case). Do that before starting
Qt Creator and it effects all builds using make triggered by Qt Creator. Or
have the kit set that variable if you only want it for builds with certain
kits.

For CMake I would recommend just switching to ninja as the build backend
though. That does parallel builds out of the box and seems much faster at
handling builds of projects where only a few files changed.

Best Regards,
Tobias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20160327/6d7aa7e8/attachment.html>


More information about the Qt-creator mailing list