[Qt-creator] Problem with CMake

Eike Ziller Eike.Ziller at qt.io
Mon Nov 16 08:46:33 CET 2020



> On Nov 15, 2020, at 20:36, Björn Schäpers <qt-maillist at hazardy.de> wrote:
> 
> So I tried again, it seems it does not matter if I hit the button once or twice (a third time is not possible, because it is disabled). What did work is closing the session and reopening it again.
> 
> What I noticed is that if I close and reopen it, and hit Ctrl + R it just starts building.


> Without it CMake is run again (and configuring the project wrongly).

What are the arguments that Qt Creator passes to CMake in that CMake run?

Br, Eike

> Kind regards,
> Björn.
> 
> Am 14.11.2020 um 15:58 schrieb Björn Schäpers:
>> I think I did press that button, but not twice.
>> 
>> I will try it again and report my result.
>> 
>> Am 12.11.2020 um 16:43 schrieb Tobias Hunger:
>>> Did you apply your changes before building? There is a "Apply changes"
>>> button below the edit area in Project mode.
>>> 
>>> You need to press that till the variables do not change anymore
>>> (usually twice...). It *should* apply before building,
>>> but maybe that is buggy or maybe you need to apply several times for
>>> things to stick.
>>> 
>>> I hope that helps,
>>> Tobias
>>> 
>>> On Thu, Nov 12, 2020 at 11:19 AM Björn Schäpers <qt-maillist at hazardy.de> wrote:
>>>> Hi,
>>>> 
>>>> I want to modify clang-format, for that I've:
>>>> * Loaded LLVMs CMakeLists.txt
>>>> * Creator runs cmake
>>>> * I modify the project (changing the install path, activating clang, but most
>>>> importantly LLVM_TARGETS_TO_BUILD set to "X86")
>>>> * Creator reruns cmake
>>>> * I can see new variables for clang, and can choose the targets to build
>>>> * I hit Ctrl+B
>>>> * My Disc runs out of memory, my changes to the cmake variables have been
>>>> dropped and I build LLVM for various targets
>>>> 
>>>> I've repeated this several times with different profiles (debug, release) and
>>>> always get the same result. Am I doing something wrong? Is there a bug?
>>>> 
>>>> Now I've run cmake myself and use the generated Makefile in the Creator for my
>>>> development.
>>>> 
>>>> I'm using msys2, gcc 10, cmake 3.18.4, and a self compiled QtCreator from the
>>>> tag v4.14.0-beta1.
>>>> 
>>>> Kind regards,
>>>> Björn.
>>>> _______________________________________________
>>>> Qt-creator mailing list
>>>> Qt-creator at qt-project.org
>>>> https://lists.qt-project.org/listinfo/qt-creator
>> 
>> 
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at qt-project.org
>> https://lists.qt-project.org/listinfo/qt-creator
> 
> 
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> https://lists.qt-project.org/listinfo/qt-creator



More information about the Qt-creator mailing list