Files
RedBear-OS/local/recipes/kde/kf6-extra-cmake-modules/source/modules/ECMFeatureSummary.cmake
T
vasilito e0590a0b56 kde/kf6-extra-cmake-modules: rebase to 6.28.0 (ECM) + teach version parser set(VERSION)
kf6-kcoreaddons 6.28.0 requires ECM >= 6.28.0 but the vendored ECM source/ was
still 6.10.0: the sync engine skipped it because ECM's version marker is a bare
set(VERSION "X.Y.Z") that the parser didn't recognize (only KF_VERSION /
PROJECT_VERSION / RELEASE_SERVICE_VERSION). Re-lay ECM from its 6.28.0 source.tar
(pure cmake modules, no Redox port) and teach both the sync engine and the
validator to read set(VERSION) so this class is caught, not silently skipped.
2026-08-01 08:07:00 +03:00

41 lines
1023 B
CMake

# SPDX-FileCopyrightText: 2023 David Faure <faure@kde.org>
#
# SPDX-License-Identifier: BSD-3-Clause
#[=======================================================================[.rst:
ECMFeatureSummary
-----------------
Call feature_summary(), except when being called from a subdirectory.
This ensures that frameworks being used as submodules by third-party applications
do not call feature_summary(), so that it doesn't end up being called multiple
times in the same cmake run.
::
include(ECMFeatureSummary)
ecm_feature_summary([... see feature_summary documentation ...])
Example:
.. code-block:: cmake
find_package(ECM REQUIRED)
include(ECMFeatureSummary)
ecm_feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
Since 5.247
#]=======================================================================]
cmake_policy(VERSION 3.16)
include(FeatureSummary)
function(ecm_feature_summary)
if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
feature_summary(${ARGV})
endif()
endfunction()