mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-23 15:38:52 -06:00
Ninja: check for valid pointer
This commit is contained in:
@@ -449,8 +449,8 @@ void cmGlobalNinjaGenerator
|
||||
}
|
||||
|
||||
// check for mingw
|
||||
std::string cc = mf->GetDefinition("CMAKE_C_COMPILER");
|
||||
if(cc.find("gcc.exe") != std::string::npos)
|
||||
const char* cc = mf->GetDefinition("CMAKE_C_COMPILER");
|
||||
if(cc && std::string(cc).find("gcc.exe") != std::string::npos)
|
||||
{
|
||||
UsingMinGW = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user