You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMake: Extract major.minor.patch in VERSION argument
LLVM has a strict compatibility check in the CMake packages they
provide. Therefore, we cannot pass a non-conformant version string,
such as `21.0.0git`, to the `find_package()` call for Clang or LLVM.
A recent change modified the FindWrapLibclang.cmake script such that
developer builds would strip out the `git` suffix. Of course, release
candidates have other suffixes, so dropping `git` is too narrow. A
more robust solution is to extract the major.minor.patch version,
i.e. turning both of `21.1.0-rc3` and `21.1.0git` into `21.1.0`.
The function that does the work is renamed to better reflect its
purpose, and all three call-sites are updated. The change is
cherry-picked to the branches that were targeted by the parent change.
This change amends 39f0f48.
Task-number: QTBUG-139407
Pick-to: 6.8
Change-Id: I06409a394c5f994f88d516efd5d9e03de06cb468
Reviewed-by: Topi Reiniö <[email protected]>
(cherry picked from commit cc1fa16)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
(cherry picked from commit 4db1dbd)
0 commit comments