[Qt-creator] Fwd: can't parse cmake project

Gena Bug archaerolog at mail.ru
Tue Mar 31 13:12:01 CEST 2020

Hi, Tobias,

QtC prints "Invalid codemodel file generated by CMake: No targets.". 
Indeed, by default there is no targets defined, however I expect to see 
a list of variables on the Project pane. Running QtC cmake-command 
manually and then cmake-gui at this folder gives me the list.

On 3/30/20 8:46 PM, Tobias Hunger wrote:
> Sorry, I somehow lost the mailing list in my reply:
> ---------- Forwarded message ---------
> From: Tobias Hunger <tobias.hunger at gmail.com>
> Date: Sun, Mar 29, 2020 at 7:19 PM
> Subject: Re: [Qt-creator] can't parse cmake project
> To: Gena Bug <archaerolog at mail.ru>
> CMake 3.16 will ise file-api.
> On Sat, Mar 28, 2020, 16:55 Gena Bug <archaerolog at mail.ru> wrote:
>> By default (i.e. call cmake w/o args) the project doesn't add any target
>> to build. Could that be the problem?
> The esasiest way to test this is to just copy the commands creator
> runs into a terminal amd try them that way. Then you will know for
> sure whether or not that is the problem.
> Are there files in .cmake in your build directory? File-api mode
> should have created some files in folders below that. They are in json
> and semi-readable, so you might want to check whether the information
> in those files makes sense for your project. Feel free to mail them to
> me if you are comfortable with sharing that information.
> Best Regards,
> Tobias
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> https://lists.qt-project.org/listinfo/qt-creator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dot.cmake.zip
Type: application/zip
Size: 4753 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20200331/e9eb5c99/attachment.zip>

More information about the Qt-creator mailing list