From: Debian Qt/KDE Maintainers Date: Sat, 15 Feb 2025 16:25:16 +0000 (+0100) Subject: cross X-Git-Tag: archive/raspbian/6.13.0-1+rpi1^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d38461e7bdc98d64de97a19c47dfdf6976c64ea2;p=kf6-knewstuff.git cross Gbp-Pq: Name cross.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f1629b..8819f6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,8 +63,12 @@ set_package_properties(KF6Syndication PROPERTIES option(BUILD_QCH "Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)" OFF) add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)") - -cmake_dependent_option(BUILD_DESIGNERPLUGIN "Build plugin for Qt Designer" ON "NOT CMAKE_CROSSCOMPILING" OFF) +if (CMAKE_CROSSCOMPILING) + set(BUILD_DESIGNERPLUGIN_DEFAULT OFF) +else() + set(BUILD_DESIGNERPLUGIN_DEFAULT ON) +endif() +option(BUILD_DESIGNERPLUGIN "Build plugin for Qt Designer" ${BUILD_DESIGNERPLUGIN_DEFAULT}) add_feature_info(DESIGNERPLUGIN ${BUILD_DESIGNERPLUGIN} "Build plugin for Qt Designer") set(EXCLUDE_DEPRECATED_BEFORE_AND_AT 0 CACHE STRING "Control the range of deprecated API excluded from the build [default=0].")