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

qt5_add_statecharts CMake function not setting SKIP_AUTOMOC flag correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.14.1
    • None
    • All

    Description

      This line (line 66) in the qt5_add_statecharts CMake function in the lib/cmake/Qt5Scxml/Qt5ScxmlMacros.cmake file:

      set_source_files_properties(${outfiles} PROPERTIES SKIP_AUTOMOC TRUE)

      is setting the property on the outfiles variable itself and not the list of files in that variable. This should be:

      set_source_files_properties(${${outfiles}} PROPERTIES SKIP_AUTOMOC TRUE)

       

      As it is currently, since I'm using AUTOMOC in my project, it's causing duplicate symbol declarations in linking.

       

      My current workaround is to manually set the SKIP_AUTOMOC property on the files from the returned variable using this same basic line in my CMakeLists.txt file.

       

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            dwhisnant Donna Whisnant
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes