BUG: fix perfered linker language code

This commit is contained in:
Bill Hoffman 2004-09-22 17:50:36 -04:00
parent 8691def12a
commit 8cb20b7052
1 changed files with 1 additions and 1 deletions

View File

@ -806,6 +806,6 @@ const char* cmTarget::GetLinkerLanguage(cmGlobalGenerator* gg) const
{ {
prefLang = languages.begin()->c_str(); prefLang = languages.begin()->c_str();
} }
const_cast<cmTarget*>(this)->SetProperty("LINKER_LANGUAGE", languages.begin()->c_str()); const_cast<cmTarget*>(this)->SetProperty("LINKER_LANGUAGE", prefLang);
return this->GetProperty("LINKER_LANGUAGE"); return this->GetProperty("LINKER_LANGUAGE");
} }