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

Support some common variables in CMake for Ctrl+Click

XMLWordPrintable

      When using target_sources, it is common to prefix files with ${CMAKE_CURRENT_SOURCE_DIR} or ${CMAKE_CURRENT_BINARY_DIR}.

      Example:

      target_sources(foo
        PUBLIC
          ${CMAKE_CURRENT_SOURCE_DIR}/foo.h
      )

       

      Without such a prefix I can click and jump to that file. But QtCreator does not allow it with this prefix. I understand that QtCreator has not enough information from the cmake server mode about the current value of variables. However, it would be nice to support some special and often used variables such as CMAKE_CURRENT_SOURCE_DIR.

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

            hunger Tobias Hunger
            hilefoks Stefan Böhmann
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes