diff --git a/src/corelib/CMakeLists.txt b/src/corelib/CMakeLists.txt index 279562cae2..8fc301e27f 100644 --- a/src/corelib/CMakeLists.txt +++ b/src/corelib/CMakeLists.txt @@ -182,7 +182,6 @@ qt_internal_add_module(Core kernel/qtranslator.cpp kernel/qtranslator.h kernel/qtranslator_p.h kernel/qvariant.cpp kernel/qvariant.h kernel/qvariantmap.h kernel/qvarianthash.h kernel/qvariantlist.h - kernel/qwineventnotifier.h plugin/qfactoryinterface.cpp plugin/qfactoryinterface.h plugin/qfactoryloader.cpp plugin/qfactoryloader_p.h plugin/qplugin.h plugin/qplugin_p.h @@ -564,7 +563,7 @@ qt_internal_extend_target(Core CONDITION WIN32 kernel/qfunctions_win.cpp kernel/qfunctions_win_p.h kernel/qfunctions_winrt_p.h kernel/qsharedmemory_win.cpp kernel/qsystemsemaphore_win.cpp - kernel/qwineventnotifier.cpp kernel/qwineventnotifier_p.h + kernel/qwineventnotifier.cpp kernel/qwineventnotifier.h kernel/qwineventnotifier_p.h kernel/qwinregistry.cpp kernel/qwinregistry_p.h plugin/qsystemlibrary.cpp plugin/qsystemlibrary_p.h thread/qthread_win.cpp @@ -586,6 +585,14 @@ qt_internal_extend_target(Core CONDITION WIN32 userenv ) +if(NOT WIN32) + ### Qt7: remove + # Make qwineventnotifier.h available on non-Windows platforms too for code bases that include + # it unconditionally. + qt_internal_extend_target(Core SOURCES kernel/qwineventnotifier.h) + set_source_files_properties(kernel/qwineventnotifier.h PROPERTIES SKIP_AUTOMOC ON) +endif() + qt_internal_extend_target(Core CONDITION WASM SOURCES kernel/qcore_wasm.cpp)