Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.14.1
-
None
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.