Commit 78588e03 authored by Peter Kümmel's avatar Peter Kümmel
Browse files

Ninja: there could be null pointers

parent 0c89c10c
......@@ -474,10 +474,11 @@ void cmGlobalNinjaGenerator
UsingMinGW = true;
&& mf->GetDefinition("CMAKE_C_COMPILER"))
std::string windres = "windres";
std::string gcc = mf->GetRequiredDefinition("CMAKE_C_COMPILER");
std::string gcc = mf->GetDefinition("CMAKE_C_COMPILER");
std::string::size_type prefix = gcc.rfind("gcc");
if (prefix != std::string::npos)
windres.insert(0, gcc.substr(0, prefix));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment