RFC: replacing MacroLogFeature.cmake with FeatureSummary.cmake
neundorf at kde.org
Sun Jul 17 20:31:27 BST 2011
Ok, there is now a branch FeatureSummaryImprovements on the cmake stage:
It should have everything discussed here:
* every package can have multiple PURPOSEs
* every package has a dependency TYPE: RUNTIME < OPTIONAL < RECOMMENDED <
* optionally, feature_summary() can abort if a REQUIRED package has not been
Usage is like this:
# the following one ideally directly inside LibXml2:
DESCRIPTION "XML processing library."
# and in the using project
PURPOSE "Required for exporting spreadsheets to odt format in kspread"
# and in some other part of the project:
PURPOSE "Required for importing html files in kword"
TYPE OPTIONAL )
# or all in one call:
DESCRIPTION "A desktop IPC bus"
PURPOSE "Required to disable the screensaver via kpresenter")
The call to feature_summary() equivalent to what we have now is:
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
Please give it a try, let me know about issues you find or whether it's just
Also, I'm happy about patches which improve the documentation or the output
format (or anything else).
More information about the kde-core-devel