diff --git a/src/corelib/CMakeLists.txt b/src/corelib/CMakeLists.txt index ed3a544e3f3..bb0fd0bb9f3 100644 --- a/src/corelib/CMakeLists.txt +++ b/src/corelib/CMakeLists.txt @@ -594,6 +594,11 @@ qt_internal_extend_target(Core CONDITION WIN32 tools/qhash.cpp # Q_DECL_INIT_PRIORITY ) +qt_internal_extend_target(Core CONDITION GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "13" + NO_UNITY_BUILD_SOURCES + io/qresource.cpp io/qresource.h io/qresource_p.h # -Werror=subobject-linkage +) + if(NOT WIN32) ### Qt7: remove # Make qwineventnotifier.h available on non-Windows platforms too for code bases that include