From cda03b434ec588b04a6cda7eaf40fd687f44a0fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johel=20Ernesto=20Guerrero=20Pe=C3=B1a?= Date: Sat, 19 Aug 2023 06:57:47 -0400 Subject: [PATCH] ci(cmake): split additional_commands to its own file (#486) --- .cmake-format | 71 +-------------------- cmake/.cmake-format-additional_commands-cpm | 69 ++++++++++++++++++++ 2 files changed, 70 insertions(+), 70 deletions(-) create mode 100644 cmake/.cmake-format-additional_commands-cpm diff --git a/.cmake-format b/.cmake-format index 24850af..9e84e5f 100644 --- a/.cmake-format +++ b/.cmake-format @@ -1,74 +1,5 @@ +include: ["cmake/.cmake-format-additional_commands-cpm"] format: tab_size: 2 line_width: 100 dangle_parens: true - -parse: - additional_commands: - cpmaddpackage: - pargs: - nargs: '*' - flags: [] - spelling: CPMAddPackage - kwargs: &cpmaddpackagekwargs - NAME: 1 - FORCE: 1 - VERSION: 1 - GIT_TAG: 1 - DOWNLOAD_ONLY: 1 - GITHUB_REPOSITORY: 1 - GITLAB_REPOSITORY: 1 - GIT_REPOSITORY: 1 - SVN_REPOSITORY: 1 - SVN_REVISION: 1 - SOURCE_DIR: 1 - DOWNLOAD_COMMAND: 1 - FIND_PACKAGE_ARGUMENTS: 1 - NO_CACHE: 1 - GIT_SHALLOW: 1 - URL: 1 - URL_HASH: 1 - URL_MD5: 1 - DOWNLOAD_NAME: 1 - DOWNLOAD_NO_EXTRACT: 1 - HTTP_USERNAME: 1 - HTTP_PASSWORD: 1 - EXCLUDE_FROM_ALL: 1 - SYSTEM: 1 - SOURCE_SUBDIR: 1 - OPTIONS: + - cpmfindpackage: - pargs: - nargs: '*' - flags: [] - spelling: CPMFindPackage - kwargs: *cpmaddpackagekwargs - cpmdeclarepackage: - pargs: - nargs: '*' - flags: [] - spelling: CPMDeclarePackage - kwargs: *cpmaddpackagekwargs - 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: + - cpmusepackagelock: - pargs: 1 - spelling: CPMUsePackageLock - cpmregisterpackage: - pargs: 1 - spelling: CPMRegisterPackage - cpmgetpackageversion: - pargs: 2 - spelling: CPMGetPackageVersion diff --git a/cmake/.cmake-format-additional_commands-cpm b/cmake/.cmake-format-additional_commands-cpm new file mode 100644 index 0000000..284c984 --- /dev/null +++ b/cmake/.cmake-format-additional_commands-cpm @@ -0,0 +1,69 @@ +parse: + additional_commands: + cpmaddpackage: + pargs: + nargs: '*' + flags: [] + spelling: CPMAddPackage + kwargs: &cpmaddpackagekwargs + NAME: 1 + FORCE: 1 + VERSION: 1 + GIT_TAG: 1 + DOWNLOAD_ONLY: 1 + GITHUB_REPOSITORY: 1 + GITLAB_REPOSITORY: 1 + GIT_REPOSITORY: 1 + SVN_REPOSITORY: 1 + SVN_REVISION: 1 + SOURCE_DIR: 1 + DOWNLOAD_COMMAND: 1 + FIND_PACKAGE_ARGUMENTS: 1 + NO_CACHE: 1 + GIT_SHALLOW: 1 + URL: 1 + URL_HASH: 1 + URL_MD5: 1 + DOWNLOAD_NAME: 1 + DOWNLOAD_NO_EXTRACT: 1 + HTTP_USERNAME: 1 + HTTP_PASSWORD: 1 + EXCLUDE_FROM_ALL: 1 + SYSTEM: 1 + SOURCE_SUBDIR: 1 + OPTIONS: + + cpmfindpackage: + pargs: + nargs: '*' + flags: [] + spelling: CPMFindPackage + kwargs: *cpmaddpackagekwargs + cpmdeclarepackage: + pargs: + nargs: '*' + flags: [] + spelling: CPMDeclarePackage + kwargs: *cpmaddpackagekwargs + 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: + + cpmusepackagelock: + pargs: 1 + spelling: CPMUsePackageLock + cpmregisterpackage: + pargs: 1 + spelling: CPMRegisterPackage + cpmgetpackageversion: + pargs: 2 + spelling: CPMGetPackageVersion