summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-09-22 21:50:36 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-09-22 21:50:36 (GMT)
commit8cb20b7052f753dbf4025366bd50e9df4b7d0635 (patch)
treedc471d8e15901670f6e1f17fd83d1768812fc6d1 /Source/cmTarget.cxx
parent8691def12a7c6e6bf7e2fa1e056c3ccd744bf69b (diff)
downloadCMake-8cb20b7052f753dbf4025366bd50e9df4b7d0635.zip
CMake-8cb20b7052f753dbf4025366bd50e9df4b7d0635.tar.gz
CMake-8cb20b7052f753dbf4025366bd50e9df4b7d0635.tar.bz2
BUG: fix perfered linker language code
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx2
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");
}