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

cmake option's tree does not hide empty groups

    XMLWordPrintable

Details

    • 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

        1. cmake_advanced_checked.jpg
          86 kB
          Silver Zachara
        2. cmake_advanced_unchecked.jpg
          91 kB
          Silver Zachara
        3. FindMySQL.cmake
          1 kB
          Silver Zachara
        For Gerrit Dashboard: QTCREATORBUG-26218
        # Subject Branch Project Status CR V

        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