mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-21 19:57:24 -05:00
Fixed typos in comments
This commit is contained in:
@@ -340,7 +340,7 @@ function(cpm_parse_add_package_single_arg arg outArgs)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# For all packages we interpret @... as version. Only replace the last occurence. Thus URIs
|
# For all packages we interpret @... as version. Only replace the last occurrence. Thus URIs
|
||||||
# containing '@' can be used
|
# containing '@' can be used
|
||||||
string(REGEX REPLACE "@([^@]+)$" ";VERSION;\\1" out "${out}")
|
string(REGEX REPLACE "@([^@]+)$" ";VERSION;\\1" out "${out}")
|
||||||
|
|
||||||
@@ -379,7 +379,7 @@ function(cpm_check_git_working_dir_is_clean repoPath gitTag isClean)
|
|||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# check for uncommited changes
|
# check for uncommitted changes
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${GIT_EXECUTABLE} status --porcelain
|
COMMAND ${GIT_EXECUTABLE} status --porcelain
|
||||||
RESULT_VARIABLE resultGitStatus
|
RESULT_VARIABLE resultGitStatus
|
||||||
@@ -405,7 +405,7 @@ function(cpm_check_git_working_dir_is_clean repoPath gitTag isClean)
|
|||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# check for commited changes
|
# check for committed changes
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${GIT_EXECUTABLE} diff -s --exit-code ${gitTag}
|
COMMAND ${GIT_EXECUTABLE} diff -s --exit-code ${gitTag}
|
||||||
RESULT_VARIABLE resultGitDiff
|
RESULT_VARIABLE resultGitDiff
|
||||||
@@ -717,7 +717,7 @@ macro(cpm_export_variables name)
|
|||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
# declares a package, so that any call to CPMAddPackage for the package name will use these
|
# declares a package, so that any call to CPMAddPackage for the package name will use these
|
||||||
# arguments instead. Previous declarations will not be overriden.
|
# arguments instead. Previous declarations will not be overridden.
|
||||||
macro(CPMDeclarePackage Name)
|
macro(CPMDeclarePackage Name)
|
||||||
if(NOT DEFINED "CPM_DECLARATION_${Name}")
|
if(NOT DEFINED "CPM_DECLARATION_${Name}")
|
||||||
set("CPM_DECLARATION_${Name}" "${ARGN}")
|
set("CPM_DECLARATION_${Name}" "${ARGN}")
|
||||||
@@ -937,7 +937,7 @@ function(cpm_get_version_from_git_tag GIT_TAG RESULT)
|
|||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
# guesses if the git tag is a commit hash or an actual tag or a branch nane.
|
# guesses if the git tag is a commit hash or an actual tag or a branch name.
|
||||||
function(cpm_is_git_tag_commit_hash GIT_TAG RESULT)
|
function(cpm_is_git_tag_commit_hash GIT_TAG RESULT)
|
||||||
string(LENGTH "${GIT_TAG}" length)
|
string(LENGTH "${GIT_TAG}" length)
|
||||||
# full hash has 40 characters, and short hash has at least 7 characters.
|
# full hash has 40 characters, and short hash has at least 7 characters.
|
||||||
|
|||||||
Reference in New Issue
Block a user