From aed498e2fb2fda89fb8b587fce310693175de86c Mon Sep 17 00:00:00 2001 From: Amir Masoud Abdol Date: Tue, 7 Feb 2023 15:16:53 +0100 Subject: Remove AUTO_RESOURCE_PREFIX, and refer to QTP0001 when possible Pick-to: 6.5 Task-number: QTBUG-96233 Change-Id: I4126760dddc9ec1b5c8850fb30a80730e19cb307 Reviewed-by: Alexandru Croitor Reviewed-by: Fabian Kosmale --- src/qml/doc/snippets/qmltc/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/qml/doc/snippets') diff --git a/src/qml/doc/snippets/qmltc/CMakeLists.txt b/src/qml/doc/snippets/qmltc/CMakeLists.txt index 4be5a96528..2c5e91c6cf 100644 --- a/src/qml/doc/snippets/qmltc/CMakeLists.txt +++ b/src/qml/doc/snippets/qmltc/CMakeLists.txt @@ -42,11 +42,12 @@ target_compile_definitions(${application_name} PRIVATE QMLTC_TESTS_BINARY_DIR="${CMAKE_CURRENT_BINARY_DIR}" ) +qt_policy(SET QTP0001 NEW) + #! [qmltc-add-qml-module] # Make the application into a proper QML module: qt6_add_qml_module(${application_name} URI QmltcExample - AUTO_RESOURCE_PREFIX QML_FILES ${application_qml_files} # Compile qml files (listed in QML_FILES) to C++ using qmltc and add these -- cgit v1.2.3