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

Visual Studio generator generates incorrect SUBDIR dependencies when linked LIBS are not case-correct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.7.1, 5.9.4
    • Build tools: qmake
    • None
    • Qt 5.7
      Visual Studio 2015

      See the attached sample project, which build correctly with qmake.

      When creating a VS project with qmake -spec win32-msvc2015 -tp vc -r, the dependencies are not preserved (MyApp doesn't depend on MyLib). This breaks the build, because MyApp may get built (and linked) before MyLib is built.

      Correcting the LIBS line in MyLib.pri to read -lMyLib (instead of -lmylib) generates correct dependencies.

        1. missing-dependency.png
          13 kB
          Julius Bullinger
        2. MySubdirsProject.zip
          111 kB
          Julius Bullinger
        3. MySubdirsProject generated solution.zip
          40 kB
          Julius Bullinger
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jbornema Joerg Bornemann
            VersalEszett Julius Bullinger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes