CMake: Fix -no-gui -developer-build
Doc snippets failed to configure due to missing Qt6::Gui target. Don't explicitly link against Gui. We already link against Widgets if that's available. That will pull in Gui too. Change-Id: I08278c8f3bd0a07c4eb9ac60031a6aa1c45f2f1d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
3ab63875e5
commit
c248dc1e9e
@ -7,7 +7,6 @@ add_library(corelib_snippets OBJECT
|
||||
|
||||
target_link_libraries(corelib_snippets PRIVATE
|
||||
Qt::Core
|
||||
Qt::Gui
|
||||
)
|
||||
|
||||
if (TARGET Qt::Widgets)
|
||||
|
Loading…
x
Reference in New Issue
Block a user