Skip to content
  • Nikita Nemkin's avatar
    Help: Add `.. versionadded` directives to commands documentation · c705279b
    Nikita Nemkin authored
    This change ony concerns directives that appear in the document body.
    
    The guidelines for inserting version directives:
    
     * Baseline version is CMake 3.0, i.e. directives start at 3.1.
     * Always use `.. versionadded::` directive, avoid ad-hoc version
       references. Exception: policy pages.
     * For new command signatures, put `versionadded` on a separate line
       after the signature.
     * For a group of new signatures in a new document section,
       a single version note at the beginning of the section is sufficient.
     * For new options, put `versionadded` on a separate line before
       option description.
     * If all the option descriptions in the list are short one-liners,
       it's fine to put `versionadded` on the same line as the description.
     * If multiple option descriptions in close proximity would have
       the same ..versionadded directive, consider adding a single
       directive after the list, mentioning all added options.
     * For compact value lis...
    c705279b