summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalMinGWMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-05-26 17:23:24 (GMT)
committerBrad King <brad.king@kitware.com>2022-05-26 17:26:54 (GMT)
commit55ba10dcfdfb1f69b81284810aa6f07dc1527ccb (patch)
tree03873782af66ccd87052a6887064161fbc886ad5 /Source/cmGlobalMinGWMakefileGenerator.cxx
parent9019537670003d8d35b6d838c7b22a751b4119b2 (diff)
downloadCMake-55ba10dcfdfb1f69b81284810aa6f07dc1527ccb.zip
CMake-55ba10dcfdfb1f69b81284810aa6f07dc1527ccb.tar.gz
CMake-55ba10dcfdfb1f69b81284810aa6f07dc1527ccb.tar.bz2
MSYS/MinGW Makefiles: Simplify selection of windres as Resource Compiler
Since commit 957c2aac7f (RC: Simplify selection of resource compiler based on C/C++ toolchain, 2015-05-07, v3.3.0-rc1~101^2~3), `windres` is selected automatically when using compilers that target the GNU ABI. Drop the generator-specific preference to make behavior more consistent with the Ninja generator. Issue: #23542
Diffstat (limited to 'Source/cmGlobalMinGWMakefileGenerator.cxx')
-rw-r--r--Source/cmGlobalMinGWMakefileGenerator.cxx19
1 files changed, 0 insertions, 19 deletions
diff --git a/Source/cmGlobalMinGWMakefileGenerator.cxx b/Source/cmGlobalMinGWMakefileGenerator.cxx
index 781912f..5a7edae 100644
--- a/Source/cmGlobalMinGWMakefileGenerator.cxx
+++ b/Source/cmGlobalMinGWMakefileGenerator.cxx
@@ -19,25 +19,6 @@ cmGlobalMinGWMakefileGenerator::cmGlobalMinGWMakefileGenerator(cmake* cm)
cm->GetState()->SetMinGWMake(true);
}
-void cmGlobalMinGWMakefileGenerator::EnableLanguage(
- std::vector<std::string> const& l, cmMakefile* mf, bool optional)
-{
- this->FindMakeProgram(mf);
- const std::string& makeProgram =
- mf->GetRequiredDefinition("CMAKE_MAKE_PROGRAM");
- std::vector<std::string> locations;
- locations.push_back(cmSystemTools::GetProgramPath(makeProgram));
- locations.push_back("/mingw/bin");
- locations.push_back("c:/mingw/bin");
- std::string trc = cmSystemTools::FindProgram("windres", locations);
- std::string rc = "windres.exe";
- if (!trc.empty()) {
- rc = trc;
- }
- mf->AddDefinition("CMAKE_GENERATOR_RC", rc);
- this->cmGlobalUnixMakefileGenerator3::EnableLanguage(l, mf, optional);
-}
-
void cmGlobalMinGWMakefileGenerator::GetDocumentation(
cmDocumentationEntry& entry)
{