Skip to content

Commit

Permalink
cmake: use a more appropriate feature guard
Browse files Browse the repository at this point in the history
The factory cache registration functionality should belong to the
cppwinrt feature, so guard it with appropriate QT_FEATURE_ guard.

Change-Id: Icbadaa7ffb32a4e47fe3bbab90c37303fd787344
Reviewed-by: Alexandru Croitor <[email protected]>
  • Loading branch information
wangwenx190 committed Oct 10, 2023
1 parent a1e052a commit 09953c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/corelib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ qt_internal_extend_target(Core CONDITION ANDROID
# place to put them.
)

qt_internal_extend_target(Core CONDITION WIN32
qt_internal_extend_target(Core CONDITION QT_FEATURE_cpp_winrt
SOURCES
platform/windows/qfactorycacheregistration_p.h
platform/windows/qfactorycacheregistration.cpp
Expand Down
4 changes: 3 additions & 1 deletion src/plugins/platforms/windows/qwindowscontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
#include <QtCore/qscopedpointer.h>
#include <QtCore/quuid.h>
#include <QtCore/private/qwinregistry_p.h>
#include <QtCore/private/qfactorycacheregistration_p.h>
#if QT_CONFIG(cpp_winrt)
# include <QtCore/private/qfactorycacheregistration_p.h>
#endif
#include <QtCore/private/qsystemerror_p.h>

#include <QtGui/private/qwindowsguieventdispatcher_p.h>
Expand Down

0 comments on commit 09953c4

Please sign in to comment.