diff options
-rw-r--r-- | Source/cmTarget.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index f9ed992..f74e019 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -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"); } |