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

Possibly revisit QTCREATORBUG-27201 to add package runtime paths to run/debug configurations for cmake projects

    XMLWordPrintable

Details

    • Windows

    Description

      Hello.
      I encountered a problem running or debugging an application that depends on a library package with non statndard layout.
      It builds just fine, but when .dll is stored apart from .lib and the 'bin' directory is renamed by the package author to something like 'bins' or 'binaries' Qt Creator just failes to start the executable.

      https://github.com/qt-creator/qt-creator/blob/master/src/plugins/cmakeprojectmanager/fileapidataextractor.cpp#L334

      CMake file API indees does not seem to mention the dll or its path unless it is manually added with 'target_link_directories', which is a dirty hack. But the package import file has the .dll in the 'IMPORTED_LOCATION_*' target property.

      Would it be in scope to try and find those paths from dependencies packages to add the to the run/debug configuration? shall this fix itself with CPS at some point?

      https://codereview.qt-project.org/c/qt-creator/qt-creator/+/404290
      https://bugreports.qt.io/browse/QTCREATORBUG-27201

       

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            danilshkodin danilshkodin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes