summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2025-10-13 23:07:55 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2025-10-15 00:01:14 +0200
commita5ba16934e157aa49e248958c55292774871472b (patch)
tree22db3c3c512f704ce8c6dba570af815c187ae277 /eclass
parent1bbfb06f49714ef2eac2f25d2354dd40e00be703 (diff)
downloadkde-a5ba16934e157aa49e248958c55292774871472b.tar.gz
kde-a5ba16934e157aa49e248958c55292774871472b.tar.bz2
kde-a5ba16934e157aa49e248958c55292774871472b.zip
cmake.eclass: No -DCMAKE_POLICY_VERSION_MINIMUM=3.5 w/ CMAKE_QA_COMPAT_SKIP
If QA checks are skipped, then it is counterproductive to hide resulting errors. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cmake.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index 01954d972fb..77ba1ccfac1 100644
--- a/eclass/cmake.eclass
+++ b/eclass/cmake.eclass
@@ -301,7 +301,7 @@ _cmake_minreqver-info() {
eqawarn " ${info}"
done
eqawarn
- if has_version -b ">=dev-build/cmake-4"; then
+ if ! [[ ${CMAKE_QA_COMPAT_SKIP} ]] && has_version -b ">=dev-build/cmake-4"; then
eqawarn "CMake 4 detected; building with -DCMAKE_POLICY_VERSION_MINIMUM=3.5"
eqawarn "This is merely a workaround to avoid CMake Error and *not* a permanent fix;"
eqawarn "there may be new build or runtime bugs as a result."
@@ -663,7 +663,9 @@ cmake_src_configure() {
cmakeargs+=( -C "${CMAKE_EXTRA_CACHE_FILE}" )
fi
- if [[ -n ${_CMAKE_MINREQVER_CMAKE305[@]} ]] && has_version -b ">=dev-build/cmake-4"; then
+ if ! [[ ${CMAKE_QA_COMPAT_SKIP} ]] &&
+ [[ -n ${_CMAKE_MINREQVER_CMAKE305[@]} ]] &&
+ has_version -b ">=dev-build/cmake-4"; then
cmakeargs+=( -DCMAKE_POLICY_VERSION_MINIMUM=3.5 )
fi