Skip to content
Snippets Groups Projects
Commit 313fed4c authored by Vicki Pfau's avatar Vicki Pfau
Browse files

src: Fix drillUp on Windows

parent 2bdec376
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,11 @@ string drillUp(const vector<string>& targets, const string& fail, const string&
return testPath;
}
}
#ifndef _WIN32
string new_path = path.substr(0, path.find_last_of('/'));
#else
string new_path = path.substr(0, path.find_last_of("/\\"));
#endif
if (new_path == path) {
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment