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

cmake option's tree does not hide empty groups

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: Qt Creator 5.0.0
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      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
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            cadam Cristian Adam
            Reporter:
            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