mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 14:47:30 -05:00
* add system property for cpm_add_subdirectory * add test case for system property * lock CMake version in test workflow * refactor to make SYSTEM an extra config option and update tests * remove old comment change * use consistent CMake version and extension for all workflows * make warning more specific and try to trigger on windows * another attempt to trigger warning on MSVC * update readme * simplify test case and use git tag * add SYSTEM option to .cmake-format * forward system arg for source overrides * enable system implicitly for the single argument syntax * Use SYSTEM option for FetchContent and add_subdirectory (#441) * Use SYSTEM option for FetchContent and add_subdirectory * Add SYSTEM option to syntax and doku * Update CPM.cmake * Update .cmake-format --------- Co-authored-by: Lars Melchior <TheLartians@users.noreply.github.com> --------- Co-authored-by: Claus Klein <claus.klein@arcormail.de>
75 lines
1.6 KiB
Plaintext
75 lines
1.6 KiB
Plaintext
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
|