mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-21 04:16:39 +08:00
CMake: Don't load QtAutoDetect for top-level standalone tests
We don't load it for qtbase standalone tests, we shouldn't for top-level builds as well. This brings us one step closer to fixing top-level standalone tests. Pick-to: 6.5 6.6 Change-Id: I7c2710e61951f6789fea63422bc575a1ac611cdc Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
@@ -12,7 +12,12 @@ include("${__qt6_qtbase_src_path}/.cmake.conf")
|
|||||||
|
|
||||||
# Run platform auto-detection /before/ the first project() call and thus
|
# Run platform auto-detection /before/ the first project() call and thus
|
||||||
# before the toolchain file is loaded.
|
# before the toolchain file is loaded.
|
||||||
include("${__qt6_qtbase_src_path}/cmake/QtAutoDetect.cmake")
|
# Don't run auto-detection when doing standalone tests. In that case, the detection
|
||||||
|
# results are taken from either QtBuildInternals or the qt.toolchain.cmake file.
|
||||||
|
|
||||||
|
if(NOT QT_BUILD_STANDALONE_TESTS)
|
||||||
|
include("${__qt6_qtbase_src_path}/cmake/QtAutoDetect.cmake")
|
||||||
|
endif()
|
||||||
|
|
||||||
project(Qt
|
project(Qt
|
||||||
VERSION "${QT_REPO_MODULE_VERSION}"
|
VERSION "${QT_REPO_MODULE_VERSION}"
|
||||||
|
|||||||
Reference in New Issue
Block a user