Closed TheLartians closed 4 years ago
Here are a couple of nifty additions to the .cmake-format.yaml for your projects to get the formatting right on the CPM and PackageProject commands:
.cmake-format.yaml
parse: additional_commands: cpmaddpackage: pargs: nargs: '*' flags: [] spelling: CPMAddPackage kwargs: NAME: 1 FORCE: 1 VERSION: 1 GIT_TAG: 1 DOWNLOAD_ONLY: 1 GITHUB_REPOSITORY: 1 GITLAB_REPOSITORY: 1 GIT_REPOSITORY: 1 SOURCE_DIR: 1 DOWNLOAD_COMMAND: 1 FIND_PACKAGE_ARGUMENTS: 1 NO_CACHE: 1 GIT_SHALLOW: 1 URL: 1 URL_HASH: 1 OPTIONS: + packageproject: pargs: nargs: '*' flags: [] spelling: packageProject kwargs: NAME: 1 VERSION: 1 INCLUDE_DIR: 1 INCLUDE_DESTINATION: 1 BINARY_DIR: 1 COMPATIBILITY: 1 VERSION_HEADER: 1 DEPENDENCIES: +
That's very useful, thanks!
Here are a couple of nifty additions to the
.cmake-format.yaml
for your projects to get the formatting right on the CPM and PackageProject commands: