diff options
author | Christoph Junghans <ottxor@gentoo.org> | 2016-08-24 17:34:56 -0600 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2016-09-08 15:12:48 +0200 |
commit | ac8c7b0f47bb1f266193375b67a6fd566d0f76d5 (patch) | |
tree | 4f03e29376f93e1c138c6c20e137fdb6ca4d30ba | |
parent | dev-util/cmake: Bump to version 3.6.2 (diff) | |
download | gentoo-ac8c7b0f47bb1f266193375b67a6fd566d0f76d5.tar.gz gentoo-ac8c7b0f47bb1f266193375b67a6fd566d0f76d5.tar.bz2 gentoo-ac8c7b0f47bb1f266193375b67a6fd566d0f76d5.zip |
cmake-utils.eclass: print feature summary
Closes: https://github.com/gentoo/gentoo/pull/2139
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
-rw-r--r-- | eclass/cmake-utils.eclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index 393ee28a26ad..d5292bc980e9 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. |