Ninja: check for valid pointer
This commit is contained in:
parent
5aab7f90f1
commit
0266c9bd19
|
@ -449,8 +449,8 @@ void cmGlobalNinjaGenerator
|
||||||
}
|
}
|
||||||
|
|
||||||
// check for mingw
|
// check for mingw
|
||||||
std::string cc = mf->GetDefinition("CMAKE_C_COMPILER");
|
const char* cc = mf->GetDefinition("CMAKE_C_COMPILER");
|
||||||
if(cc.find("gcc.exe") != std::string::npos)
|
if(cc && std::string(cc).find("gcc.exe") != std::string::npos)
|
||||||
{
|
{
|
||||||
UsingMinGW = true;
|
UsingMinGW = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue