Fix tst_qfreelist when build with unity
Previous setup of the test was failing in minimal static build if built using the unity build because of the explicit inclusion of the qtcore source files. In order to resolve this, I removed the inclusion of qtcore's headers and made the test private. Pick-to: 6.5 Task-number: QTBUG-109394 Change-Id: Id1c7b3b65ca2078354c235a718ff3e93a65362e6 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
e512734278
commit
608c2501e5
@ -17,7 +17,9 @@ add_subdirectory(qduplicatetracker)
|
||||
add_subdirectory(qeasingcurve)
|
||||
add_subdirectory(qexplicitlyshareddatapointer)
|
||||
add_subdirectory(qflatmap)
|
||||
add_subdirectory(qfreelist)
|
||||
if(QT_FEATURE_private_tests)
|
||||
add_subdirectory(qfreelist)
|
||||
endif()
|
||||
add_subdirectory(qhash)
|
||||
add_subdirectory(qhashfunctions)
|
||||
add_subdirectory(qhashseed)
|
||||
|
@ -11,11 +11,3 @@ qt_internal_add_test(tst_qfreelist
|
||||
LIBRARIES
|
||||
Qt::CorePrivate
|
||||
)
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
qt_internal_extend_target(tst_qfreelist CONDITION NOT QT_FEATURE_private_tests
|
||||
SOURCES
|
||||
../../../../../src/corelib/tools/qfreelist.cpp
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user