diff options
author | Craig Scott <craig.scott@crascit.com> | 2021-03-26 11:06:20 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2021-03-26 11:17:57 (GMT) |
commit | 900184616afd01cf44115f1db777e05d97776306 (patch) | |
tree | 8b11257f04b7c867ea6dd0a097fe59e038949a5b /Source/cmConfigureFileCommand.cxx | |
parent | 635431a0c9696c8c8be5d94e6afdc044afd5384c (diff) | |
download | CMake-900184616afd01cf44115f1db777e05d97776306.zip CMake-900184616afd01cf44115f1db777e05d97776306.tar.gz CMake-900184616afd01cf44115f1db777e05d97776306.tar.bz2 |
Cleanup: Fix misspelt name of local C++ variable
Diffstat (limited to 'Source/cmConfigureFileCommand.cxx')
-rw-r--r-- | Source/cmConfigureFileCommand.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/cmConfigureFileCommand.cxx b/Source/cmConfigureFileCommand.cxx index edd261d..12b2925 100644 --- a/Source/cmConfigureFileCommand.cxx +++ b/Source/cmConfigureFileCommand.cxx @@ -165,7 +165,7 @@ bool cmConfigureFileCommand(std::vector<std::string> const& args, return false; } - mode_t permisiions = 0; + mode_t permissions = 0; if (filePermissions) { if (filePermissionOptions.empty()) { @@ -175,7 +175,7 @@ bool cmConfigureFileCommand(std::vector<std::string> const& args, std::vector<std::string> invalidOptions; for (auto const& e : filePermissionOptions) { - if (!cmFSPermissions::stringToModeT(e, permisiions)) { + if (!cmFSPermissions::stringToModeT(e, permissions)) { invalidOptions.push_back(e); } } @@ -197,14 +197,14 @@ bool cmConfigureFileCommand(std::vector<std::string> const& args, } if (noSourcePermissions) { - permisiions |= cmFSPermissions::mode_owner_read; - permisiions |= cmFSPermissions::mode_owner_write; - permisiions |= cmFSPermissions::mode_group_read; - permisiions |= cmFSPermissions::mode_world_read; + permissions |= cmFSPermissions::mode_owner_read; + permissions |= cmFSPermissions::mode_owner_write; + permissions |= cmFSPermissions::mode_group_read; + permissions |= cmFSPermissions::mode_world_read; } if (!status.GetMakefile().ConfigureFile(inputFile, outputFile, copyOnly, - atOnly, escapeQuotes, permisiions, + atOnly, escapeQuotes, permissions, newLineStyle)) { status.SetError("Problem configuring file"); return false; |