benchmarks: fix configuring with -no-feature-sql
With -no-feature-sql, CMake would error out because the target Qt6::Sql didn't exist. Fix this by checking if the target exists. Task-number: QTBUG-102480 Pick-to: 6.2 6.3 6.4 Change-Id: I411631acfd336ea699833954f86711067d160c04 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
60de00cb2f
commit
30eac4a4f9
@ -4,7 +4,6 @@
|
||||
# Generated from benchmarks.pro.
|
||||
|
||||
add_subdirectory(corelib)
|
||||
add_subdirectory(sql)
|
||||
if(TARGET Qt::DBus)
|
||||
add_subdirectory(dbus)
|
||||
endif()
|
||||
@ -14,6 +13,9 @@ endif()
|
||||
if(TARGET Qt::Network)
|
||||
add_subdirectory(network)
|
||||
endif()
|
||||
if(TARGET Qt::Sql)
|
||||
add_subdirectory(sql)
|
||||
endif()
|
||||
if(TARGET Qt::Test)
|
||||
add_subdirectory(testlib)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user