mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
cmcldeps: search for single-byte strings as characters
This commit is contained in:
@@ -258,7 +258,7 @@ int main()
|
||||
// needed to suppress filename output of msvc tools
|
||||
std::string srcfilename;
|
||||
{
|
||||
std::string::size_type pos = srcfile.rfind("\\");
|
||||
std::string::size_type pos = srcfile.rfind('\\');
|
||||
if (pos == std::string::npos) {
|
||||
srcfilename = srcfile;
|
||||
} else {
|
||||
@@ -280,7 +280,7 @@ int main()
|
||||
clrest = replace(clrest, objfile, objfile + ".dep.obj ");
|
||||
|
||||
// rc: src\x\x.rc -> cl: /Tc src\x\x.rc
|
||||
if (srcfile.find(" ") != std::string::npos)
|
||||
if (srcfile.find(' ') != std::string::npos)
|
||||
srcfile = "\"" + srcfile + "\"";
|
||||
clrest = replace(clrest, srcfile, "/Tc " + srcfile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user