summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalMinGWMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2010-12-22 20:26:30 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2010-12-23 22:04:49 (GMT)
commitb2f308c8f9b4ded77f0693b39c0288e3bbb00977 (patch)
tree17147169f0687131605f82690ca28ab678d2b2cb /Source/cmGlobalMinGWMakefileGenerator.cxx
parent8c7b19d35ee81afac57fe623217578191f4d034c (diff)
downloadCMake-b2f308c8f9b4ded77f0693b39c0288e3bbb00977.zip
CMake-b2f308c8f9b4ded77f0693b39c0288e3bbb00977.tar.gz
CMake-b2f308c8f9b4ded77f0693b39c0288e3bbb00977.tar.bz2
Add support for windows resources with mingw/msys.
Diffstat (limited to 'Source/cmGlobalMinGWMakefileGenerator.cxx')
-rw-r--r--Source/cmGlobalMinGWMakefileGenerator.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmGlobalMinGWMakefileGenerator.cxx b/Source/cmGlobalMinGWMakefileGenerator.cxx
index 9f9d1be..2f558dc 100644
--- a/Source/cmGlobalMinGWMakefileGenerator.cxx
+++ b/Source/cmGlobalMinGWMakefileGenerator.cxx
@@ -44,8 +44,15 @@ void cmGlobalMinGWMakefileGenerator
{
gxx = tgxx;
}
+ std::string trc = cmSystemTools::FindProgram("windres", locations);
+ std::string rc = "windres.exe";
+ if(trc.size())
+ {
+ rc = trc;
+ }
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);
}