Ninja: Do not crash when CMAKE_<LANG>_COMPILE_OBJECT is empty (#15325)
This commit is contained in:
parent
c118816d44
commit
9a13fcbf02
|
@ -454,7 +454,10 @@ cmNinjaTargetGenerator
|
|||
std::vector<std::string> compileCmds;
|
||||
cmSystemTools::ExpandListArgument(compileCmd, compileCmds);
|
||||
|
||||
if (!compileCmds.empty())
|
||||
{
|
||||
compileCmds.front().insert(0, cldeps);
|
||||
}
|
||||
|
||||
for (std::vector<std::string>::iterator i = compileCmds.begin();
|
||||
i != compileCmds.end(); ++i)
|
||||
|
|
Loading…
Reference in New Issue