diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-09-22 16:43:21 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-01 12:09:38 +0200 |
commit | 98c455abf5c0aae13a816113a9c819f49899e776 (patch) | |
tree | 143aec549dd8e25979579c57252ffe21daedb447 /CMakeLists.txt | |
parent | 67afac53feda6b05edf7a17dd506d378500ba9ae (diff) |
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: I35f75f7a384abb5265e8d02ec22f8218ef11e234
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b10dfcbcc..c9f55b6d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,10 @@ project(QtTools # special case # special case begin 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 Core Network) find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS AxContainer DBus Xml Widgets Quick QuickWidgets QmlDevTools Sql PrintSupport OpenGL OpenGLWidgets) # special case end |