Warning, /frameworks/extra-cmake-modules/modules/ECMFeatureSummary.cmake is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2023 David Faure <faure@kde.org> 0002 # 0003 # SPDX-License-Identifier: BSD-3-Clause 0004 0005 #[=======================================================================[.rst: 0006 ECMFeatureSummary 0007 ----------------- 0008 0009 Call feature_summary(), except when being called from a subdirectory. 0010 This ensures that frameworks being used as submodules by third-party applications 0011 do not call feature_summary(), so that it doesn't end up being called multiple 0012 times in the same cmake run. 0013 0014 0015 :: 0016 0017 include(ECMFeatureSummary) 0018 ecm_feature_summary([... see feature_summary documentation ...]) 0019 0020 Example: 0021 0022 .. code-block:: cmake 0023 0024 find_package(ECM REQUIRED) 0025 include(ECMFeatureSummary) 0026 ecm_feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) 0027 0028 Since 5.247 0029 #]=======================================================================] 0030 0031 include(FeatureSummary) 0032 function(ecm_feature_summary) 0033 0034 if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) 0035 feature_summary(${ARGV}) 0036 endif() 0037 0038 endfunction()