summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2025-05-21 23:12:50 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2025-05-21 23:17:38 +0200
commit5618916b60871220697c64da6d1cdbe6df158cbd (patch)
tree7bc77b42ad59e8976dba70d94f616ee1a5caa940 /eclass
parent3cde749abe4e11d0e6e597853f6adc56b934a946 (diff)
downloadkde-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>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cmake.eclass2
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 \
)