Skip to content

PrintHelpers: add formatting options

Frank Dana requested to merge ferdnyc/cmake:printhelpers-formatted-lists into master

Add new option arguments FORMATTED_LISTS (to both commands) and MULTI_LINE (only to cmake_print_variables) which trigger alternative formatting that lays out displayed values favoring vertical space rather than horizontal, to avoid overlong output lines and make the results more readable.

Also, modernize and enhance the module's documentation formatting in the course of documenting the new options.

Unit tests for the new formattings are included (added in RunCMake/PrintHelpers/)

(ARRGH! I just missed 3.26, didn't I? Well, this may have to be adjusted, since I documented the new options as .. versionadded:: 3.26 which I guess won't be true even if it does land.)

Merge request reports