diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-09-22 18:22:25 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-01 12:10:02 +0200 |
commit | 24a51ed34ce5a20861dc5a254882e49b19352393 (patch) | |
tree | 007816860ce72ec576d314ded16d9b506ec24daa | |
parent | 8651264e7f1d624271c84221d468597ac8f4edf8 (diff) | |
download | qtwayland-24a51ed34ce5a20861dc5a254882e49b19352393.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: I1c11a0b2c46eb1967419233ed579fb58f1781cea
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e72c5e1c..3833e6bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,9 @@ project(QtWayland # special case # TODO: Fix warnings and remove this set(QT_REPO_NOT_WARNINGS_CLEAN TRUE) +# Make sure we only use latest private CMake API, aka no compatibility wrappers. +set(QT_NO_INTERNAL_COMPATIBILITY_FUNCTIONS TRUE) + find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals ) |