CMake: Disable usage of CMake API compatibility wrappers

Setting the QT_NO_INTERNAL_COMPATIBILITY_FUNCTIONS variable
in the project ensures we ported away from old API calls.

Task-number: QTBUG-86815
Change-Id: I0d1868a24b0f4e0cc817c11fef160f8b392814af
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alexandru Croitor 2020-09-22 12:11:13 +02:00
parent 403213240c
commit 9d55eee8da

View File

@ -15,6 +15,9 @@ project(QtBase
LANGUAGES CXX C ASM LANGUAGES CXX C ASM
) )
# Make sure we only use latest private CMake API, aka no compatibility wrappers.
set(QT_NO_INTERNAL_COMPATIBILITY_FUNCTIONS TRUE)
if (CMAKE_CROSSCOMPILING AND CMAKE_SYSROOT) if (CMAKE_CROSSCOMPILING AND CMAKE_SYSROOT)
# When cross compiling with CMake any calls to pkg_check_modules() will # When cross compiling with CMake any calls to pkg_check_modules() will
# search into the host system instead of the target sysroot. # search into the host system instead of the target sysroot.