summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeBlocksGenerator.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-08-31 17:42:21 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-08-31 17:42:21 (GMT)
commitd338e69c01d7b2cb65a7c34843f564d96be73b26 (patch)
treea6c953675d9c2154cdf86c65d793497b509159e1 /Source/cmExtraCodeBlocksGenerator.cxx
parent20455c699bab663148d9e7932eb1faf722473d29 (diff)
downloadCMake-d338e69c01d7b2cb65a7c34843f564d96be73b26.zip
CMake-d338e69c01d7b2cb65a7c34843f564d96be73b26.tar.gz
CMake-d338e69c01d7b2cb65a7c34843f564d96be73b26.tar.bz2
ENH: add support for Fortran to the KDevelop generator
-minor optimization for GetLanguageEnabled() Alex
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r--Source/cmExtraCodeBlocksGenerator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx
index 0c15596..02e3bfb 100644
--- a/Source/cmExtraCodeBlocksGenerator.cxx
+++ b/Source/cmExtraCodeBlocksGenerator.cxx
@@ -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";
}