* add prettify macro
* apply the prettier and change the name of the output arg
* add parameter inside macro
* resolve path if its cmake_sourc_dir
* add missing uparsed argument
* add early unit test for prettifier
* retab prettify_cpm_add_package
* rename prettify_cpm_add_package cpm_prettyfy_package_arguments
* convert macro to function and fix unit test
* fix typo in the name of the parse argument in prettyfy function
* change the unit test to test only the function
* add test for the commented part
* remove dead code
* fix typo
* run cmake-format on CPM.cmake
* reformated unit test prettify
* flip the logic to add space on new argument unparsed to avoir space at the end
* remove debug message
* apply most suggestion from pr 162, disable formating only for small part in unit test
* add unit test to cover defauld source dir added inside lock
* run format tool on unit test
* remove dead code
* change the prettifier from 4 space to 2
* run format on unit test
* apply clang-format and cmake-format and add style check workflow
* add declare package definition
* add additional public methods and rename internals
* change development verison tag to 1.0.0
* rename internal method
* rename public method
* rename test var
* update copyright and fix comment
* typo
* run fix-format
* fix test function names
When using CPMFindPackage, if no VERSION is given then GIT_TAG is used as fallback if defined, which is a good idea.
The issue is that GIT_TAG is missing inside the oneValueArgs variable therefore GIT_TAG is not parsed. This is resolved by this little change.
When I used CPM_<pkg>_SOURCE to point to a locally modified copy,
the options ended up not being passed on. I think they should be, so
this patch does so.
* Add asio standalone example
* Mark VERSION explicitly
Without this version information, CPM's versioning mechanism may break
in some cases.
Also add comments for compile definition on Windows.
* Use aync-tcp-echo-server as the example
* Add boost software license to the demo source
Co-authored-by: Lars Melchior <TheLartians@users.noreply.github.com>
Co-authored-by: Lars Melchior <TheLartians@users.noreply.github.com>
* 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
* 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
* 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
* add VERSION_PREFIX argument
* add fmt example
* add VERSION_PREFIX note to readme
* rollback, add info about determining version from git tag
* rollback version