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

Top-level CMake projects containing no target are not resolved

    XMLWordPrintable

Details

    • 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

          For Gerrit Dashboard: QTCREATORBUG-25509
          # Subject Branch Project Status CR V

          Activity

            People

              cadam Cristian Adam
              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