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

Top-level CMake projects containing no target are not resolved

    XMLWordPrintable

    Details

    • Commits:
      845230166b093e3900047d5e3c9bef4f39985e44 (qt-creator/tqtc-qt-creator/5.0) 86825283ed7e38ed78ff0e76c755a027b2da461f (qt-creator/tqtc-qt-creator/master)

      Description

      The following project cannot be initially resolved in QtCreator:

      project(hpd NONE)
      
      option(HPD_BUILD_X4_FIRMARE   "Build X4 firmware"   OFF)
      option(HPD_BUILD_RPMIN_LIB    "Build rpmin library" OFF)
      
      message("Using toolchain: ${CMAKE_CXX_COMPILER_ID}")
      
      if (HPD_BUILD_RPMIN_LIB )
          add_subdirectory(src/hpd)
      endif()
      
      if (HPD_BUILD_X4_FIRMARE)
          add_subdirectory(src/x4_firmware)
      endif()
      

      Qt Creator claims that resolving was not successful, while the CMake output indicates that everything was OK. I expect this project to be resolved, no matter what kind of toolchain I select and I expect QtCreator to present me the configuration options declared at the top of the file.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              cadam Cristian Adam
              Reporter:
              rweickelt Richard Weickelt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes