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

Errors in cmake install steps create incorrect hyperlink

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 16.0.2
    • None
    • All

    Description

      If a CMakeLists.txt file has an error in an `install` directive then cmake will emit a path to the generated install file; however, the path is relative to the cmake binary directory.

      The hyperlink created by Qt Creator (in the Compile Output pane) is assumed to be relative to the source directory, and thus does not work.

      Sample CMakeLists.txt:

      cmake_minimum_required(VERSION 3.20)

      project(qtc_inst)

      install(
          FILES
              missing.txt
          DESTINATION
              .
      )

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            chardrazle Richard Hazlewood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes