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

qmake -project produces unescaped backslashes to be used in the DEPENDPATH on Windows where there are multi-level subdirectories

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • 4.7.1
    • Build tools: qmake
    • None
    • Windows
    • 9d3e87578ce204683a5ff1ab7505d02fd03ef357

    Description

      qmake project generator causes \ to be used in the DEPENDPATH items where -recursive is used and where there is more than one level of subdirectories. This isn't a problem but causes the "unescaped backslashes are deprecated" warning when running qmake on the resultant .pro file. This could cause problems if/when unescaped backslashes are no longer supported.

      The problem can be reproduced using a directory structure like this:-

      C:\Temp\qtbug\inc
      C:\Temp\qtbug\src
      C:\Temp\qtbug\inc\file.h
      C:\Temp\qtbug\src\a
      C:\Temp\qtbug\src\b
      C:\Temp\qtbug\src\file.cpp
      C:\Temp\qtbug\src\a\file_a.cpp
      C:\Temp\qtbug\src\b\file_b.cpp

      and a qmake line like this:-

      qmake -project -o qtbug.pro -r src inc

      from the qtbug directory.

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            cattell Matthew Cattell (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes