Lars Melchior
ac872f6908
Bump version and add gitlab source to examples ( #138 )
...
* use gitlab as source for example library
* bump CPM.cmake version
2020-08-04 12:24:06 +02:00
jecassis
bd14ccbd5a
Fix indeterminate command for GitLab argument ( #137 )
2020-08-04 11:40:58 +02:00
Lars Melchior
9ec279c75f
bump version and update tests ( #131 )
2020-06-15 10:16:30 +02:00
Kingsley Chen
392b2a864b
Use shallow clone for git repositories by default ( #129 ) ( #130 )
...
* Use shallow clone for git repositories by default (#129 )
* use shallow clone for git repositories by default
* remove trailing spaces
* Enable shallow clone for actual tags
* Support short commit hash
* Enable shallow only when downloading dependencies into cache
* Always honor user specified GIT_SHALLOW opiton
2020-06-15 09:27:26 +02:00
Lars Melchior
139d3cacba
Add NO_CACHE option ( #128 )
...
* add NO_CACHE option
* add unit test
2020-06-04 14:22:57 +02:00
Lars Melchior
b31063d2ae
prevent overriding declarations ( #127 )
2020-05-29 16:08:41 +02:00
Lars Melchior
4425bd38cf
Add FORCE parameter ( #126 )
...
* add scope protection
* rename to cpm_clean_argument_scope and update patch version
* undo unnecessary scope cleaning
* undo some changes
* consistent define checks
2020-05-29 15:37:49 +02:00
Lars Melchior
54a2d80d1e
Add option for local package override ( #123 )
...
* add option for local package override
* print info on the source directory
2020-05-29 09:58:39 +02:00
Lars Melchior
829262cbd3
omit unversioned and local dependencies in package lock ( #122 )
...
* omit unversioned and local dependencies in package lock
* update package lock for active project only
2020-05-28 13:29:25 +02:00
Lars Melchior
4aeea1d31d
Add package lock ( #121 )
...
* add package lock creation
* change target name
* fix cpm_export_variables
* add test
* fix git repo detection addition
* remove test package lock from git
* add link to package lock wiki
* add CPMGetPackage
2020-05-27 19:07:06 +02:00
Lars Melchior
58365446f5
fix DOWNLOAD_ONLY option when used with CPMFindPackage ( #120 )
2020-05-19 20:47:12 +02:00
Johel Ernesto Guerrero Peña
4937617ef1
Use STREQUAL rather than MATCHES <regex> ( #116 )
2020-05-10 11:21:07 +02:00
Lars Melchior
6f053907f5
check if package added before find_package ( #115 )
2020-05-07 23:54:10 +02:00
Lars Melchior
3fff3ca70d
Call FetchContent_GetProperties before DOWNLOAD_ONLY population ( #113 )
...
* call FetchContent_GetProperties before checking populated
* fix old CPM.cmake links
* update description
* bump version
2020-04-29 12:40:12 +02:00
Lars Melchior
ca33abc236
create FindXXX.cmake modules for added CPM packages ( #112 )
...
* create FindXXX.cmake modules for added CPM packages
* don't use list(PREPEND) as it unsupported on older CMake versions
* use CMAKE_BINARY_DIR
* ensure CPM.cmake is initialized only once
* import CPM.cmake in modules
2020-04-29 09:18:54 +02:00
Lars Melchior
00b5e80f88
Fix offline cache support ( #110 )
...
* use cmake -E true as empty command
* use cmake without arguments as valid empty command
2020-04-25 01:27:27 +02:00
Lars Melchior
618cdefa0d
Support CPM_SOURCE_CACHE on windows ( #109 )
...
* use semicolon as empty command and add test
* remove platform specific test coverage
* only run actions for pushes and prs into master (avoid duplication)
* remove cache test as it's already part of the test suite
* update version
* test cache reuse
2020-04-25 00:51:18 +02:00
Lars Melchior
464ba554c2
suppress package not found warning in CPMFindPackage ( #103 )
2020-04-14 09:35:31 +02:00
Lars Melchior
95c5426d25
remove code artifact from previous PR ( #101 )
2020-03-16 20:09:15 +01:00
Lars Melchior
cea81872cf
Add fmt example and document version from git tag ( #100 )
...
* add VERSION_PREFIX argument
* add fmt example
* add VERSION_PREFIX note to readme
* rollback, add info about determining version from git tag
* rollback version
2020-03-16 20:00:30 +01:00
Lars Melchior
01b69aad82
add support for SOURCE_DIR argument ( #97 )
...
* add support for SOURCE_DIR argument
* simplify code
* add test
* update comment
2020-02-25 13:29:21 +01:00
Lars Melchior
775a235880
default to "ON" for options without explicit value definition ( #96 )
...
* default to "ON" for options without explicit value definition
* increment CPM version
* compare the correct lengths
2020-02-06 11:50:55 +01:00
Lars Melchior
f8d4e959bb
abort when nested (bugfix) ( #94 )
...
* abort when nested (bugfix)
* update error message
* update error message
2019-10-25 20:52:22 +02:00
Lars Melchior
47bfb554ab
reorganise source and add CPMFindPackage ( #92 )
...
* reorganise source and add CPMFindPackage
* add consistent find_package behaviour
* document CPMFindPackage
* reset examples to CPMAddPackage unless tested
* update version
* update README.md
* Update README.md
2019-10-24 15:42:25 +02:00
Lars Melchior
4064a45552
Add CPM_SOURCE_CACHE environmental variable support and keep existing sources ( #83 )
...
* read CPM_SOURCE_CACHE from environment
* update readme
* cleanup
* add cache tests
2019-10-10 20:13:10 +02:00
Lars Melchior
8625173d8f
add CPM_SOURCE_ROOT option ( #81 )
...
* add CPM_SOURCE_ROOT option
* update version and readme
2019-10-07 16:34:07 +02:00
Lars Melchior
160a665973
remove unused argument ( #67 )
2019-06-27 13:06:52 +02:00
Lars Melchior
3d75ed06a3
add unit tests and determine version from GIT_TAG ( #66 )
...
* add unit tests
* determine package version from git tag. closes #54 .
* update readme
* bugfix
* update example
* update gitignore
2019-06-22 13:31:32 +02:00
Lars Melchior
4967b841ad
Update CPM.cmake
2019-05-20 17:54:08 +02:00
Lars Melchior
9c2c34f487
Update CPM.cmake
2019-05-20 17:53:37 +02:00
Lars Melchior
a4f055c7aa
Add url shortcuts ( #53 )
...
* add github and gitlab shortcut, closes #52
* update version
* update examples and readme
2019-05-20 13:33:01 +02:00
Lars Melchior
002cf6b64c
print version warning in main CPM
2019-05-20 13:03:45 +02:00
Lars Melchior
bf5e9ebafb
Add DEPENDENCY_ADDED property ( #50 )
...
* add DEPENDENCY_ADDED property
* update examples
* Update README.md
* Update README.md
* Update CPM.cmake
* Update README.md
2019-05-20 01:52:55 +02:00
Lars Melchior
8d39e34ff2
v0.9 ( #46 )
...
* always get properties
* update examples
* update travis
* add doctest example
* update example runner
2019-05-17 14:46:54 +02:00
Lars Melchior
bebea37c4a
Update CPM.cmake
2019-05-09 13:29:12 +02:00
Lars Melchior
137bda299d
Update CPM.cmake ( #44 )
...
* Update CPM.cmake
* Update CPM.cmake
2019-05-08 21:36:51 +02:00
Lars Melchior
9021499c52
Update CPM.cmake
2019-05-05 11:47:28 +02:00
Lars Melchior
9b97b64da2
Correct version output
2019-05-04 10:39:39 +02:00
Lars Melchior
df752ed5d3
Update CPM.cmake
2019-05-04 10:32:20 +02:00
Lars Melchior
f00f5517a6
Update CPM.cmake ( #43 )
...
- Increase Version to 0.8
- Add version check
- Add DOWNLOAD_ONLY option
2019-05-04 10:23:02 +02:00
Lars Melchior
a97b32824e
bugfix ( #42 )
2019-04-28 12:17:30 +02:00
Lars Melchior
e558d795f9
Update CPM.cmake ( #41 )
2019-04-26 15:44:36 +02:00
Lars Melchior
5192f713d2
Default to remote packages ( #38 )
...
* Update CPM.cmake
* Update CPM.cmake
* Update README.md
2019-04-22 20:01:41 +02:00
Lars Melchior
044edb1fd2
add origin comment ( #34 )
...
* Update CPM.cmake
* Update CPM.cmake
* add licence to script
* Update CPM.cmake
* Update CPM.cmake
2019-04-18 14:21:45 +02:00
Lars Melchior
07a4d626a1
Remove debug log ( #33 )
2019-04-18 13:54:43 +02:00
Lars Melchior
b3a875e2dd
use CPM_LOCAL_PACKAGES_ONLY again ( #29 )
2019-04-17 22:05:59 +02:00
Lars Melchior
95634c30fd
only download if no options are provided ( #24 )
2019-04-17 13:36:08 +02:00
Lars Melchior
dd63d9fcdb
Dev ( #21 )
...
* better debug output
* update example
* update readme
2019-04-17 13:01:56 +02:00
Lars Melchior
f2ad294ef3
only use add_package when VERSION is present ( #16 )
2019-04-15 14:22:43 +02:00
Lars Melchior
2d95c66fa4
add package options ( #13 )
...
* add package options
* update tests
* update Glue package
2019-04-14 14:49:35 +02:00