diff options
| author | Alexandru Croitor <alexandru.croitor@qt.io> | 2025-10-15 16:47:31 +0200 |
|---|---|---|
| committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2025-10-16 14:36:57 +0200 |
| commit | b2402684cc18db631c41383293cb84bb2351d9d2 (patch) | |
| tree | cedfc418e5e5dfc71c6cd60d707714ae3b1df840 /src/corelib/serialization/qjsonparser.cpp | |
| parent | b1a7a9d4f437c905df8368742b4189f1e8cea311 (diff) | |
CMake: Relax handling of CMP0156 policy
Don't warn about CMP0156 policy values for platforms we don't require
them for, which are Apple and Emscripten. This avoids scaring project
developers unnecessarily and forcing them to set the policy to OLD /
NEW explicitly.
Effectively this means we don't force the policy anymore to OLD if
cmake_minimum_required is 3.29 or higher on non-Apple and
non-Emscripten platforms.
CMake is smart enough to do de-duplication of libraries on platforms
or linkers that don't support it.
Amends c20d7bcb86361d0c9f8af3807dcad9db1a3a5ca0
Amends d6d832d0d28ac29807a04f6634a20e12649b440d
[ChangeLog][Build Systems] CMake user projects will now use CMake's
default value for the CMP0156 policy, except for Apple and Emscripten
platforms which are forced to NEW (when the policy is available).
Pick-to: 6.8 6.10
Fixes: QTBUG-141181
Task-number: QTBUG-135978
Task-number: QTBUG-140211
Change-Id: I44d65537a6ca38fdc16bf42088e18f2690f0adbf
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/corelib/serialization/qjsonparser.cpp')
0 files changed, 0 insertions, 0 deletions
