diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index 6412df1001a..3076d5f3a44 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -858,7 +858,7 @@ function(qt_enable_autogen_tool target tool enable) # that the moc scanner has to look for. Inform the CMake moc scanner about it. if(tool STREQUAL "moc" AND enable) set_target_properties("${target}" PROPERTIES - AUTOMOC_MACRO_NAMES "Q_OBJECT;Q_GADGET;Q_NAMESPACE;Q_NAMESPACE_EXPORT") + AUTOMOC_MACRO_NAMES "Q_OBJECT;Q_GADGET;Q_NAMESPACE;Q_NAMESPACE_EXPORT;Q_ENUM_NS") endif() set_target_properties("${target}"