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
Lars Melchior
3c0d201c76
return when package has been added before ( #10 )
2019-04-11 11:21:04 +02:00
Lars Melchior
4c22b73ebd
Use FetchContent ( #9 )
...
* remove CPM_RESET in favor of CPM_OFFLINE
* Use FetchContent
* update travis
* update travis
* update travis
* update travis
* update travis
2019-04-11 10:13:28 +02:00
Lars Melchior
e4bbd6e215
remove CPM_RESET in favor of CPM_OFFLINE ( #6 )
...
* remove CPM_RESET in favor of CPM_OFFLINE
* Update README.md (#5 )
* Update README.md
* Update README.md
* Update README.md
2019-04-10 16:43:57 +02:00
Lars Melchior
e368fce6c3
Add CPM_RESET ( #4 )
...
* added CPM_RESET option
* update readme
* Update README.md
2019-04-09 20:01:27 +02:00
Lars Melchior
ffa310199a
remove test log
2019-04-09 16:59:49 +02:00
Lars Melchior
5a56af6f06
update test
2019-04-09 15:51:25 +02:00
Lars Melchior
dbc785e354
bugfix
2019-04-09 15:32:30 +02:00
Lars Melchior
77ff8c59b7
create cmake dir
2019-04-09 15:31:31 +02:00