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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.10.1
    • 1.10.0
    • General
    • 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

          For Gerrit Dashboard: QBS-1287
          # Subject Branch Project Status CR V

          Activity

            People

              jbornema Joerg Bornemann
              villytiger Ilya Lyubimov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes