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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 1.10.1
    • 1.10.0
    • General
    • None

      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
      

        1. test.tar.xz
          0.7 kB
          Ilya Lyubimov
        For Gerrit Dashboard: QBS-1287
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes