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:
parent
6c1609ea55
commit
46546809f5
|
@ -475,9 +475,8 @@ void cmGlobalNinjaGenerator
|
||||||
{
|
{
|
||||||
UsingMinGW = true;
|
UsingMinGW = true;
|
||||||
std::string rc = cmSystemTools::FindProgram("windres");
|
std::string rc = cmSystemTools::FindProgram("windres");
|
||||||
if(rc.empty())
|
if(!rc.empty())
|
||||||
rc = "windres.exe";;
|
mf->AddDefinition("CMAKE_RC_COMPILER", rc.c_str());
|
||||||
mf->AddDefinition("CMAKE_RC_COMPILER", rc.c_str());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this->cmGlobalGenerator::EnableLanguage(language, mf, optional);
|
this->cmGlobalGenerator::EnableLanguage(language, mf, optional);
|
||||||
|
|
Loading…
Reference in New Issue