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:
@@ -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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user