diff options
| author | Andreas Sturmlechner <asturm@gentoo.org> | 2025-05-21 23:12:50 +0200 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2025-05-21 23:17:38 +0200 |
| commit | 5618916b60871220697c64da6d1cdbe6df158cbd (patch) | |
| tree | 7bc77b42ad59e8976dba70d94f616ee1a5caa940 | |
| parent | 3cde749abe4e11d0e6e597853f6adc56b934a946 (diff) | |
| download | kde-5618916b60871220697c64da6d1cdbe6df158cbd.tar.gz kde-5618916b60871220697c64da6d1cdbe6df158cbd.tar.bz2 kde-5618916b60871220697c64da6d1cdbe6df158cbd.zip | |
cmake.eclass: CMake 4 QA check: Exit after first match
We don't want more than one version for the subsequent ver_test.
Besides, any follow-up cmake_minimum_required call will most likely
be conditional for some type of workarounds.
Thanks-to: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
| -rw-r--r-- | eclass/cmake.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 5332e84135d..d4f8cbc284c 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -371,7 +371,7 @@ cmake_src_configure() { local file ver cmreq_isold if ! [[ ${CMAKE_QA_COMPAT_SKIP} ]]; then while read -d '' -r file ; do - ver=$(sed -ne "/cmake_minimum_required/ s/.*\(\.\.\.*\|\s\)\([0-9.]*\)\([)]\|\s\).*$/\2/p" \ + ver=$(sed -ne "/cmake_minimum_required/{s/.*\(\.\.\.*\|\s\)\([0-9.]*\)\([)]\|\s\).*$/\2/p;q}" \ "${file}" 2>/dev/null \ ) |
