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

cmake option's tree does not hide empty groups

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P4: Low
    • Resolution: Done
    • Qt Creator 5.0.0
    • None
    • None
    • All
    • 3c7d0c5c98 (qt-creator/qt-creator/master) 3c7d0c5c98 (qt-creator/qt-creator/qmlprojectstorage)

    Description

      When the group is empty it is still displayed, I would assume that empty groups will be hidden.

      Now I have half hour searched where the heck is MySQL option set in my cmakelists, then I realized that it is not the option but it is a group.

      I'm using this FindMySQL.cmake to find mysqlclient and it creates two advanced options MySQL_INCLUDE_DIRS and MySQL_LIBRARIES, when I uncheck Advanced, then this parent MySQL group is still visible.

      Advanced unchecked:

      Advanced checked:

      You can use that FindMySQL module like this:

      find_package(MySQL REQUIRED)
      target_link_libraries(library_cmake PRIVATE MySQL::MySQL)
      

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            silverq Silver Zachara
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes