summaryrefslogtreecommitdiffstats
path: root/Source/cmcldeps.cxx
diff options
context:
space:
mode:
authorPeter Kuemmel <syntheticpp@gmx.net>2012-06-12 12:36:39 (GMT)
committerPeter Kuemmel <syntheticpp@gmx.net>2012-06-12 12:36:39 (GMT)
commit12cc6434bfad53a4bc45b0ab36d27489346dfadc (patch)
treeb497ad28e113a41447bf0630b54decded1378f1e /Source/cmcldeps.cxx
parent5590625fa3d3e6261cc5c9e39e02a205b1ed8027 (diff)
downloadCMake-12cc6434bfad53a4bc45b0ab36d27489346dfadc.zip
CMake-12cc6434bfad53a4bc45b0ab36d27489346dfadc.tar.gz
CMake-12cc6434bfad53a4bc45b0ab36d27489346dfadc.tar.bz2
Ninja: ninja can't read dep. pathes with parentheses
Diffstat (limited to 'Source/cmcldeps.cxx')
-rw-r--r--Source/cmcldeps.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/cmcldeps.cxx b/Source/cmcldeps.cxx
index ac1c49a7..549eeac 100644
--- a/Source/cmcldeps.cxx
+++ b/Source/cmcldeps.cxx
@@ -578,8 +578,8 @@ static void outputDepFile(const string& dfile, const string& objfile,
tmp = *i;
doEscape(tmp, "\\", "/");
doEscape(tmp, " ", "\\ ");
- //doEscape(tmp, "(", "("); // TODO ninja cant read ( and )
- //doEscape(tmp, ")", ")");
+ //doEscape(tmp, "(", "\\("); // TODO ninja can't read ( and )
+ //doEscape(tmp, ")", "\\)");
fprintf(out, "%s \\\n", tmp.c_str());
}
@@ -637,12 +637,9 @@ int main() {
string line;
vector<string> includes;
bool isFirstLine = true; // cl prints always first the source filename
- std::string sysHeadersCamel = "Program Files (x86)\\Microsoft ";
- std::string sysHeadersLower = "program files (x86)\\microsoft ";
while (getline(ss, line)) {
if (startsWith(line, prefix)) {
- if (!contains(line, sysHeadersCamel)
- && !contains(line, sysHeadersLower)) {
+ if (!contains(line, "(") && !contains(line, ")")) {
string inc = trimLeadingSpace(line.substr(prefix.size()).c_str());
if (inc[inc.size() - 1] == '\r') // blech, stupid \r\n
inc = inc.substr(0, inc.size() - 1);