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

qt5_add_binary_resources() macro does not recompile for cmake generated input

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.9.4
    • 5.6.0, 5.9.0 Beta 3
    • Build System: CMake
    • None
    • MacOSX and Ubuntu linux.
      Ninja used in cmake process
    • 43e444d1ffac9d63eeb2053465d02ce4a6cc7410

    Description

      The qt5_add_binary_resources() cmake macro does not result in a recompile of the binary output, when the input file is updated via a cmake generator.

      This occurs because the input file is not specified as a dependency (though the files listed in its contents are).

      Adding the input files to the DEPENDS option corrects this issue:

      257 - DEPENDS ${rc_depends} ${out_depends}
      to
      257 - DEPENDS ${rc_depends} ${out_depends} ${infiles}
      

      Attachments

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

        Activity

          People

            krf Kevin Funk
            kkuryllo Kacper Kuryllo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes