Commit 46546809 authored by Peter Kümmel's avatar Peter Kümmel

Ninja: windres is also used for cross-compiling

It makes no sense to set windres.exe as default,
especially when we are on Linux or Unix.
parent 6c1609ea
......@@ -475,9 +475,8 @@ void cmGlobalNinjaGenerator
{
UsingMinGW = true;
std::string rc = cmSystemTools::FindProgram("windres");
if(rc.empty())
rc = "windres.exe";;
mf->AddDefinition("CMAKE_RC_COMPILER", rc.c_str());
if(!rc.empty())
mf->AddDefinition("CMAKE_RC_COMPILER", rc.c_str());
}
}
this->cmGlobalGenerator::EnableLanguage(language, mf, optional);
......
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