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

Filter for cm/cmo shortcuts on ctrl-k are reversed (IMO

    XMLWordPrintable

Details

    • Linux/Wayland, Windows
    • 196f17cfa (15.0)

    Description

      Background:

      cm allows me to execute any target, including UTILITY target (defined via add_custom_target(...)

      cmo allows me to open the cmake file where targets that are not UTILITY are defined.

      I'd like to be able use cmo to navigate to utility targets too. 
      (Executing utility targets makes less sense, but they can have custom commands added)

      Repro:

      Sample cmake file (with empty dummy.c & dummy.txt files in same dir):

      project(cm_cmo_repro)
      add_library(lib_cm_and_cmo dummy.c)
      add_custom_target(util_only_cm_and_sadness SOURCES dummy.txt)
      

      Expected:

      Both targets available via 'ctrl-k + cmo'.

      Bonus expectation:

      util not available in 'ctrl-k + cm' as it doesn't do anything. (but it could, if add_custom_command(..) was used to add something to that target, like:

      add_custom_command(TARGET util_cm_and_cmo COMMAND echo "hello world!")

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            madmac Marcus Sonestedt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes