From 865648e7bdf02693e493e9931ac56c933af4c1f6 Mon Sep 17 00:00:00 2001 From: Lars Bilke Date: Wed, 9 Feb 2022 12:25:26 +0100 Subject: [PATCH] Fixed typos in comments --- cmake/CPM.cmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmake/CPM.cmake b/cmake/CPM.cmake index ef3d5c8..e32b7d0 100644 --- a/cmake/CPM.cmake +++ b/cmake/CPM.cmake @@ -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}") @@ -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 @@ -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 @@ -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}") @@ -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.