[Qt-creator] QtCreator 10 and CMakePresets

Cristian Adam cristian.adam at qt.io
Mon Apr 3 22:40:04 CEST 2023


Qt Creator 10 supports configure and build presets (no test presets) up to version 5.

Any changes to the presets would require the deletion of the CMakeLists.txt.user file and the associated generated Kit presets.
Currently there is no better way.  Expect updates for the workflow in a future Qt Creator Version.

For CMakePresets usage have a look at Qt Creator 9 - CMakePresets<https://www.qt.io/blog/qt-creator-9-cmakepresets> and Qt Creator 10 - CMake update<https://www.qt.io/blog/qt-creator-10-cmake-update>.

Cheers,
Cristian

________________________________
From: Qt-creator <qt-creator-bounces at qt-project.org> on behalf of Michael Jackson <mike.jackson at bluequartz.net>
Sent: Monday, April 3, 2023 21:57
To: QtCreator List <qt-creator at qt-project.org>
Subject: [Qt-creator] QtCreator 10 and CMakePresets

Is QtCreator 10’s use of CMakePresets the “configure” preset or the “build” preset? I can’t really figure it out? Is it using the display name or the “name” in the preset? Does it honor the “inherits” property of a preset?

And when I rename the presets (in an attempt to make the preset more obvious) how do I inform QtCreator that those names have changed? At the moment I am blowing away all the build directories and the CMakelists.txt.user file and re-opening the project. Is there a better way?
—
Mike Jackson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20230403/e93a41a2/attachment-0001.htm>


More information about the Qt-creator mailing list