diff options
author | Brad King <brad.king@kitware.com> | 2019-08-07 15:45:15 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-08-07 15:47:54 (GMT) |
commit | ddb1759b3e2b5c1b2c56734cd2ae0fa6dcf3a815 (patch) | |
tree | fa0e32d0fdb3cf0b328b3a4181956868ca355b31 /Source/cmMakefile.cxx | |
parent | 97b12c7922f75c169736f65a3d9549a3084167c0 (diff) | |
parent | 959b97a27f8816fb1db5c3a1d51cd994086a886b (diff) | |
download | CMake-ddb1759b3e2b5c1b2c56734cd2ae0fa6dcf3a815.zip CMake-ddb1759b3e2b5c1b2c56734cd2ae0fa6dcf3a815.tar.gz CMake-ddb1759b3e2b5c1b2c56734cd2ae0fa6dcf3a815.tar.bz2 |
Merge topic 'cmStringAlgorithms_move_functions'
959b97a27f Tests: testStringAlgorithms: Add cmTrimWhitespace, cmEscapeQuotes, cmTokenize
7fbcc16dcd cmStringAlgorithms: cmIsSpace, cmTrimWhitespace, cmEscapeQuotes, cmTokenize
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3647
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 015453a..86a002f 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -2175,8 +2175,7 @@ cmSourceGroup* cmMakefile::GetOrCreateSourceGroup(const std::string& name) if (delimiter == nullptr) { delimiter = "\\"; } - return this->GetOrCreateSourceGroup( - cmSystemTools::tokenize(name, delimiter)); + return this->GetOrCreateSourceGroup(cmTokenize(name, delimiter)); } /** @@ -2668,7 +2667,7 @@ MessageType cmMakefile::ExpandVariablesInStringOld( if (const char* val = this->GetDefinition(var)) { // Store the value in the output escaping as requested. if (escapeQuotes) { - source.append(cmSystemTools::EscapeQuotes(val)); + source.append(cmEscapeQuotes(val)); } else { source.append(val); } @@ -2832,7 +2831,7 @@ MessageType cmMakefile::ExpandVariablesInStringNew( // Get the string we're meant to append to. if (value) { if (escapeQuotes) { - varresult = cmSystemTools::EscapeQuotes(value); + varresult = cmEscapeQuotes(value); } else { varresult = value; } @@ -2958,7 +2957,7 @@ MessageType cmMakefile::ExpandVariablesInStringNew( } if (escapeQuotes) { - varresult = cmSystemTools::EscapeQuotes(varresult); + varresult = cmEscapeQuotes(varresult); } // Skip over the variable. result.append(last, in - last); |