diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-09-25 16:28:38 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-01 12:09:51 +0200 |
commit | 395c79681b630e6f99838222074d0398e801adcb (patch) | |
tree | 9af518776afc1a11d6a39336fe0bd9301550970e | |
parent | 801e0bfb612fe60c18a42796146eaccb5f95486b (diff) |
CMake: Disable usage of CMake API compatibility wrappersv6.0.0-alpha1
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: I365a6447bbfee59caf0b200c5696970e4bc60e48
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e9475d..56a235d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,11 @@ project(QtQuickTimeline # special case LANGUAGES CXX C ) +# special case begin +# Make sure we only use latest private CMake API, aka no compatibility wrappers. +set(QT_NO_INTERNAL_COMPATIBILITY_FUNCTIONS TRUE) +# sepcial case end + find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Quick) # special case find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS ) # special case |