-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* 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
- Loading branch information
1 parent
139d3ca
commit 392b2a8
Showing
2 changed files
with
64 additions
and
13 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
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,22 @@ | ||
cmake_minimum_required(VERSION 3.14 FATAL_ERROR) | ||
|
||
include(${CPM_PATH}/CPM.cmake) | ||
include(${CPM_PATH}/testing.cmake) | ||
|
||
CPM_IS_GIT_TAG_COMMIT_HASH("v1.2.3" RESULT) | ||
ASSERT_EQUAL("0" ${RESULT}) | ||
|
||
CPM_IS_GIT_TAG_COMMIT_HASH("asio-1-12-1" RESULT) | ||
ASSERT_EQUAL("0" ${RESULT}) | ||
|
||
CPM_IS_GIT_TAG_COMMIT_HASH("513039e3cba83284cec71287fd829865b9f423bc" RESULT) | ||
ASSERT_EQUAL("1" ${RESULT}) | ||
|
||
CPM_IS_GIT_TAG_COMMIT_HASH("513039E3CBA83284CEC71287FD829865B9F423BC" RESULT) | ||
ASSERT_EQUAL("1" ${RESULT}) | ||
|
||
CPM_IS_GIT_TAG_COMMIT_HASH("513039E" RESULT) | ||
ASSERT_EQUAL("1" ${RESULT}) | ||
|
||
CPM_IS_GIT_TAG_COMMIT_HASH("513039E3CBA8" RESULT) | ||
ASSERT_EQUAL("1" ${RESULT}) |