diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2024-01-31 11:07:10 +0100 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2024-02-01 09:46:51 +0100 |
commit | 31b75303d7f9126dcc9bb0e94f0ea4ef1b9c0a71 (patch) | |
tree | 784cd366649e0e9f45aec95d45b6f660c7d53752 /tests/auto/cmake/test_QTP0003/source.cpp | |
parent | d0da8d963d31f75b8648448f74819ee0854a86bb (diff) |
Introduce QTP0003 which controls the BUILD_SHARED_LIBS impact on user projects
Since 6.7 we consider the BUILD_SHARED_LIBS when creating libraries
using Qt CMake API. This change may affect the user projects that rely
on the old strategy of selecting the default library type. To preserve
the old behavior this change introduces the QTP0003 policy that allows
user to control whether the BUILD_SHARED_LIBS should or shouldn't be
considered in library creation process.
The policy doesn't affect Qt repos, we assume that we want the NEW
behavior by default.
Fixes: QTBUG-121707
Pick-to: 6.7
Change-Id: I4bcfbd8966839731624e3f7ef9e0d6bb2782ac50
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'tests/auto/cmake/test_QTP0003/source.cpp')
-rw-r--r-- | tests/auto/cmake/test_QTP0003/source.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/cmake/test_QTP0003/source.cpp b/tests/auto/cmake/test_QTP0003/source.cpp new file mode 100644 index 0000000000..0df705acd8 --- /dev/null +++ b/tests/auto/cmake/test_QTP0003/source.cpp @@ -0,0 +1,4 @@ +// Copyright (C) 2024 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 + +class Noop {}; |