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

[REG 5.4 -> 5.5.0beta] QMake Visual Studio generator - wrong option value for precompiled header

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.5.0 Beta
    • Fix Version/s: 5.5.0
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Commits:
      059e1df345bab5754488a63e6d149de86ebf655a

      Description

      1. Create project with PRECOMPILED_HEADER=../some_path/header.h
      2. Generate MS VC Solution

      Building the project fails with the following error message:

      error C2857: '#include' statement specified with the /Yc..\some_path\header.h command-line option was not found in the source file
      

      header.h.cpp is created in ../some_path and contains the include "header.h".
      The generated options for header.h.cpp is

      /Yc"../_some_path_/header.h".
      

      it should be

       /Yc"header.h"
      

      Change dc612acdc6577594c8f61345cea2de549d7aae34 (https://codereview.qt-project.org/#/c/96979/) seems to have introduced this regression.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              jbornema Joerg Bornemann
              Reporter:
              sh_viktor Viktor Shanin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes