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

QMake: if you #include a C file from another C file, the original file no make target is created

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.15.9
    • 6.0.0
    • Build System
    • None
    • linux debian
    • 134ee7d932391c7b3c1b801e64e4f5693c3cdd20 (qt/qtbase/dev) bd75dd929c89b4d2b3257c26786330dc1507a478 (qt/tqtc-qtbase/tqtc/lts-5.15)

    Description

      So lets say I got in .pro file

      SOURCES += \

          "foo.c" \

          "bar.c" \

          "whatever-else.c"  .... etc

       

      in bar.c, we have

      #define DO_SOMETHING_DIFFERENT

      #include "foo.c"

       

      No make target is then generated for foo.c, even though it aught be there, we have explicitly included it in the sources.  Only bar.c is compiled and linked.

       

      A third party library I want to statically link with my project uses this structure of re including a "c" file that also needs to be compiled into the project on its own.

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              gavin786 Gavin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes