From 8cb20b7052f753dbf4025366bd50e9df4b7d0635 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 22 Sep 2004 17:50:36 -0400 Subject: [PATCH] BUG: fix perfered linker language code --- Source/cmTarget.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index f9ed99247..f74e01908 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(this)->SetProperty("LINKER_LANGUAGE", languages.begin()->c_str()); + const_cast(this)->SetProperty("LINKER_LANGUAGE", prefLang); return this->GetProperty("LINKER_LANGUAGE"); }