mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
cmLocalUnixMakefileGenerator3: Use cmScriptGenerator::Quote
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include "cmOutputConverter.h"
|
||||
#include "cmRange.h"
|
||||
#include "cmRulePlaceholderExpander.h"
|
||||
#include "cmScriptGenerator.h"
|
||||
#include "cmSourceFile.h"
|
||||
#include "cmState.h"
|
||||
#include "cmStateSnapshot.h"
|
||||
@@ -1154,7 +1155,7 @@ void cmLocalUnixMakefileGenerator3::AppendCleanCommand(
|
||||
fout << "file(REMOVE_RECURSE\n";
|
||||
for (std::string const& file : files) {
|
||||
std::string fc = this->MaybeRelativeToCurBinDir(file);
|
||||
fout << " " << cmOutputConverter::EscapeForCMake(fc) << '\n';
|
||||
fout << " " << cmScriptGenerator::Quote(fc) << '\n';
|
||||
}
|
||||
fout << ")\n";
|
||||
}
|
||||
@@ -1215,7 +1216,7 @@ void cmLocalUnixMakefileGenerator3::AppendDirectoryCleanCommand(
|
||||
for (std::string const& cfl : cleanFiles) {
|
||||
std::string fc = rootLG->MaybeRelativeToCurBinDir(
|
||||
cmSystemTools::CollapseFullPath(cfl, currentBinaryDir));
|
||||
fout << " " << cmOutputConverter::EscapeForCMake(fc) << '\n';
|
||||
fout << " " << cmScriptGenerator::Quote(fc) << '\n';
|
||||
}
|
||||
fout << ")\n";
|
||||
}
|
||||
@@ -2027,8 +2028,7 @@ void cmLocalUnixMakefileGenerator3::WriteDependLanguageInfo(
|
||||
"set(CMAKE_TARGET_DEFINITIONS_"
|
||||
<< lang << '\n';
|
||||
for (std::string const& define : defines) {
|
||||
cmakefileStream << " " << cmOutputConverter::EscapeForCMake(define)
|
||||
<< '\n';
|
||||
cmakefileStream << " " << cmScriptGenerator::Quote(define) << '\n';
|
||||
}
|
||||
cmakefileStream << " )\n";
|
||||
}
|
||||
@@ -2068,8 +2068,7 @@ void cmLocalUnixMakefileGenerator3::WriteDependLanguageInfo(
|
||||
if (!transformRules.empty()) {
|
||||
cmakefileStream << "\nset(CMAKE_INCLUDE_TRANSFORMS\n";
|
||||
for (std::string const& tr : transformRules) {
|
||||
cmakefileStream << " " << cmOutputConverter::EscapeForCMake(tr)
|
||||
<< '\n';
|
||||
cmakefileStream << " " << cmScriptGenerator::Quote(tr) << '\n';
|
||||
}
|
||||
cmakefileStream << " )\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user