Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-74710

qmake treats absolute path as relative path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.12.0
    • Build tools: qmake
    • None
    • BASE=E:\dev
    • Windows

    Description

      Say the build environment in Windows is setup as follows

      set BASE=E:\dev

      and then in the .pro file we use

       RC_INCLUDEPATH += $(BASE)/some/path

      then qmake will expand this to

      $(ProjectDir)\\E:\dev\some\path

      It seems qmake thinks $(BASE)/some/path is a relative path due to the variable $(BASE) which does not seem to be expanded early enough.

      Relevant code: VcprojGenerator::initResourceTool(), see

      https://code.woboq.org/qt5/qtbase/qmake/generators/win32/msvc_vcproj.cpp.html#1135

       

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            dhaumann Dominik Haumann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes