commit: ac8c7b0f47bb1f266193375b67a6fd566d0f76d5 Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org> AuthorDate: Wed Aug 24 23:34:56 2016 +0000 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> CommitDate: Thu Sep 8 13:12:48 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac8c7b0f
cmake-utils.eclass: print feature summary Closes: https://github.com/gentoo/gentoo/pull/2139 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> eclass/cmake-utils.eclass | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index 393ee28..d5292bc 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -425,6 +425,13 @@ _cmake_modify-cmakelists() { Module \${CMAKE_MODULE_LINKER_FLAGS} Shared \${CMAKE_SHARED_LINKER_FLAGS}\n") _EOF_ + + if ! grep -Fiq FEATURE_SUMMARY "${CMAKE_USE_DIR}"/CMakeLists.txt; then + cat >> "${CMAKE_USE_DIR}"/CMakeLists.txt <<- _EOF_ || die + include(FeatureSummary) + FEATURE_SUMMARY(INCLUDE_QUIET_PACKAGES WHAT ALL) + _EOF_ + fi } # temporary function for moving cmake cleanups from from src_configure -> src_prepare.