diff options
author | Brad King <brad.king@kitware.com> | 2018-05-24 13:56:16 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-05-24 13:56:23 (GMT) |
commit | 2f8230b05251aa498b47a883d471b1ebfd357e64 (patch) | |
tree | f09df6274eeb236f62b6a0bdd9a389c926c10bea /Source/cmMacroCommand.cxx | |
parent | 2eb9852d7b74c45aa30c8a5db7e8469bad1eecd4 (diff) | |
parent | b1a05d6c762ceb6dbf47126a7ddcedadb45e02f5 (diff) | |
download | CMake-2f8230b05251aa498b47a883d471b1ebfd357e64.zip CMake-2f8230b05251aa498b47a883d471b1ebfd357e64.tar.gz CMake-2f8230b05251aa498b47a883d471b1ebfd357e64.tar.bz2 |
Merge topic 'revise-case-insensitive-command'
b1a05d6c76 Revise implementation of case-insensitive command names
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2024
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r-- | Source/cmMacroCommand.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx index 6f4b930..23d93a3 100644 --- a/Source/cmMacroCommand.cxx +++ b/Source/cmMacroCommand.cxx @@ -161,9 +161,9 @@ bool cmMacroFunctionBlocker::IsFunctionBlocked(const cmListFileFunction& lff, { // record commands until we hit the ENDMACRO // at the ENDMACRO call we shift gears and start looking for invocations - if (!cmSystemTools::Strucmp(lff.Name.c_str(), "macro")) { + if (lff.Name.Lower == "macro") { this->Depth++; - } else if (!cmSystemTools::Strucmp(lff.Name.c_str(), "endmacro")) { + } else if (lff.Name.Lower == "endmacro") { // if this is the endmacro for this macro then execute if (!this->Depth) { mf.AppendProperty("MACROS", this->Args[0].c_str()); @@ -191,7 +191,7 @@ bool cmMacroFunctionBlocker::IsFunctionBlocked(const cmListFileFunction& lff, bool cmMacroFunctionBlocker::ShouldRemove(const cmListFileFunction& lff, cmMakefile& mf) { - if (!cmSystemTools::Strucmp(lff.Name.c_str(), "endmacro")) { + if (lff.Name.Lower == "endmacro") { std::vector<std::string> expandedArguments; mf.ExpandArguments(lff.Arguments, expandedArguments, this->GetStartingContext().FilePath.c_str()); |