-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into preserve_empty_strings
- Loading branch information
Showing
7 changed files
with
120 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,6 @@ | ||
include: ["cmake/.cmake-format-additional_commands-cpm"] | ||
format: | ||
tab_size: 2 | ||
line_width: 100 | ||
line_ending: auto | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
require_relative './lib' | ||
|
||
# Tests using a multi-argumenet download command to fetch a dependency | ||
|
||
class DownloadCommand < IntegrationTest | ||
|
||
def test_fetch_dependency_using_download_command | ||
prj = make_project from_template: 'using-adder' | ||
|
||
prj.create_lists_from_default_template package: <<~PACK | ||
set(DOWNLOAD_DIR ${CMAKE_BINARY_DIR}/_deps/testpack-adder-src) | ||
CPMAddPackage( | ||
NAME testpack-adder | ||
SOURCE_DIR ${DOWNLOAD_DIR} | ||
DOWNLOAD_COMMAND git clone --depth 1 --branch v1.0.0 https://github.com/cpm-cmake/testpack-adder.git ${DOWNLOAD_DIR} | ||
OPTIONS "ADDER_BUILD_TESTS OFF" | ||
) | ||
PACK | ||
|
||
# configure with unpopulated cache | ||
assert_success prj.configure | ||
assert_success prj.build | ||
end | ||
|
||
end |