diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-09-22 12:11:13 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-09-23 16:59:06 +0200 |
commit | 9d55eee8da758cb9ea535cd35f12bf0789cb3b32 (patch) | |
tree | 82a27396cc42c2fb694e11e8f32a23ceacf19615 /CMakeLists.txt | |
parent | 403213240c7b2dc09378e1cb8c147131e368f90c (diff) | |
download | qtbase-9d55eee8da758cb9ea535cd35f12bf0789cb3b32.tar.gz |
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>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6aed77873d..b089814803 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,9 @@ project(QtBase 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) # When cross compiling with CMake any calls to pkg_check_modules() will # search into the host system instead of the target sysroot. |