1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-18 08:51:52 +08:00

ENH: add support for Fortran to the KDevelop generator

-minor optimization for GetLanguageEnabled()

Alex
This commit is contained in:
Alexander Neundorf
2007-08-31 13:42:21 -04:00
parent 20455c699b
commit d338e69c01
4 changed files with 198 additions and 135 deletions

View File

@@ -271,8 +271,7 @@ std::string cmExtraCodeBlocksGenerator::GetCBCompilerId(const cmMakefile* mf)
// figure out which language to use
// for now care only for C and C++
std::string compilerIdVar = "CMAKE_CXX_COMPILER_ID";
cmGlobalGenerator* gg=const_cast<cmGlobalGenerator*>(this->GlobalGenerator);
if (gg->GetLanguageEnabled("CXX") == false)
if (this->GlobalGenerator->GetLanguageEnabled("CXX") == false)
{
compilerIdVar = "CMAKE_C_COMPILER_ID";
}