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.
This commit is contained in:
Peter Kümmel 2012-07-15 15:05:34 +02:00
parent 6c1609ea55
commit 46546809f5
1 changed files with 2 additions and 3 deletions

View File

@ -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);