|
|
@@ -69,9 +69,16 @@ void cmGlobalMSYSMakefileGenerator
|
|
|
{
|
|
|
gxx = tgxx;
|
|
|
}
|
|
|
+ std::string trc = cmSystemTools::FindProgram("windres", locations);
|
|
|
+ std::string rc = "windres.exe";
|
|
|
+ if(trc.size())
|
|
|
+ {
|
|
|
+ rc = trc;
|
|
|
+ }
|
|
|
mf->AddDefinition("MSYS", "1");
|
|
|
mf->AddDefinition("CMAKE_GENERATOR_CC", gcc.c_str());
|
|
|
mf->AddDefinition("CMAKE_GENERATOR_CXX", gxx.c_str());
|
|
|
+ mf->AddDefinition("CMAKE_GENERATOR_RC", rc.c_str());
|
|
|
this->cmGlobalUnixMakefileGenerator3::EnableLanguage(l, mf, optional);
|
|
|
|
|
|
if(!mf->IsSet("CMAKE_AR") &&
|