Skip to content

Commit

Permalink
Fixed typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke authored Feb 9, 2022
1 parent 33bdbae commit 865648e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmake/CPM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ function(cpm_parse_add_package_single_arg arg outArgs)
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
string(REGEX REPLACE "@([^@]+)$" ";VERSION;\\1" out "${out}")

Expand Down Expand Up @@ -379,7 +379,7 @@ function(cpm_check_git_working_dir_is_clean repoPath gitTag isClean)
return()
endif()

# check for uncommited changes
# check for uncommitted changes
execute_process(
COMMAND ${GIT_EXECUTABLE} status --porcelain
RESULT_VARIABLE resultGitStatus
Expand All @@ -405,7 +405,7 @@ function(cpm_check_git_working_dir_is_clean repoPath gitTag isClean)
return()
endif()

# check for commited changes
# check for committed changes
execute_process(
COMMAND ${GIT_EXECUTABLE} diff -s --exit-code ${gitTag}
RESULT_VARIABLE resultGitDiff
Expand Down Expand Up @@ -717,7 +717,7 @@ macro(cpm_export_variables name)
endmacro()

# 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)
if(NOT DEFINED "CPM_DECLARATION_${Name}")
set("CPM_DECLARATION_${Name}" "${ARGN}")
Expand Down Expand Up @@ -937,7 +937,7 @@ function(cpm_get_version_from_git_tag GIT_TAG RESULT)
endif()
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)
string(LENGTH "${GIT_TAG}" length)
# full hash has 40 characters, and short hash has at least 7 characters.
Expand Down

0 comments on commit 865648e

Please sign in to comment.