Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1287

cpp.link property doesn't work in exported Depends item

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.10.1
    • Component/s: General
    • Labels:
      None

      Description

      See attached example.

      The application depends on lib2. Lib2 uses public headers from lib1 in its own public headers but doesn't require to link to lib1. When I set cpp.link to false in Depends item exported from lib2 it doesn't affect linking process, lib1 is still used during application linking.

      qbs --command-echo-mode command-line
      ...
      /usr/bin/g++ -Wl,-m,elf_x86_64 -m64 -o /home/vt/projects/test/build/default/app.7d104347/app /home/vt/projects/test/build/default/app.7d104347/3a52ce780950d4d9/main.cpp.o /home/vt/projects/test/build/default/lib2.5f8ea45c/liblib2.a /home/vt/projects/test/build/default/lib1.00728e89/liblib1.a
      

        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:
                villytiger Ilya Lyubimov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes