ecm.eclass: Avoid unused cmake arg warnings w/ >=KF-6.15

Upstream now only searches for these Python libs inside the
BUILD_PYTHON_BINDINGS conditional if enabled.

See also:
https://invent.kde.org/frameworks/kunitconversion/-/commit/2c1239dd

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2025-06-12 00:36:31 +02:00
parent b18ee004b7
commit ea201fd78f

View File

@@ -641,10 +641,10 @@ ecm_src_configure() {
fi
if [[ ${ECM_PYTHON_BINDINGS} == off ]]; then
cmakeargs+=(
-DBUILD_PYTHON_BINDINGS=OFF
-DCMAKE_DISABLE_FIND_PACKAGE_{Python3,PySide6,Shiboken6}=ON
)
cmakeargs+=( -DBUILD_PYTHON_BINDINGS=OFF )
if ver_test -lt 6.15; then
cmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_{Python3,PySide6,Shiboken6}=ON )
fi
fi
if [[ ${ECM_QTHELP} = true ]]; then