Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-14258

Import of CMake projects does not use all the .cbp files that are generated by CMake

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 3.4.0-rc1
    • None
    • Every platform where QtCreator runs.

      When importing a CMake project the user is directed to select the top level CMakeLists.txt file from their project. QtCreator then runs cmake to generate code blocks files (.cbp) for the project. When QtCreator parses the top level .cbp file to gather project information only the top level .cbp file is used. On projects that have multiple "project()" declarations in them once .cbp file will be produced for each "project()" cmake call. These other .cbp files will be in other subdirectories most likely. These sub .cpb files will have all the necessary target information for each library or application being built. QtCreator should be able to parse all of these files in order to properly build its C++ code model with all "project parts" accounted for. Attached is a small CMake project the shows the generation of these multiple .cbp files.

        1. Archive.zip
          119 kB
        2. QTCREATORBUG13695.cbp
          11 kB
        3. QTCREATORBUG-13695.zip
          8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            dt Daniel Teske
            imikejackson Michael Jackson
            Votes:
            8 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes