CMake: Run auto-detection routines before any project command

This is needed to ensure that the auto-detection runs before any
toolchain file is loaded, like in a stand-alone qtbase build.

This fixes the issue that we had to specify ANDROID_STL=c++_shared in a
top-level build, even though it's properly defaulted in
QtAutoDetect.cmake.

Task-number: QTBUG-87309
Change-Id: I8ced2213ca2e5a877bfd210e59da4ef4d6c8ac74
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Joerg Bornemann
2020-10-09 11:50:41 +02:00
parent 70dc8438fc
commit eaf64a222f

View File

@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.15.0)
include(${CMAKE_CURRENT_SOURCE_DIR}/qtbase/cmake/QtAutoDetect.cmake)
project(Qt
VERSION 6.0.0
DESCRIPTION "Qt Libraries"