mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 12:19:54 -05:00
BUG: fix perfered linker language code
This commit is contained in:
+1
-1
@@ -806,6 +806,6 @@ const char* cmTarget::GetLinkerLanguage(cmGlobalGenerator* gg) const
|
||||
{
|
||||
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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user