summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio6Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-10-27 14:53:01 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-10-27 14:53:01 (GMT)
commit36c8f1d15792192790f0841d5658a105f44b420b (patch)
tree488e5dcf19787ed344fb62e7724964b6d899f393 /Source/cmLocalVisualStudio6Generator.cxx
parent56234aed4bfc87b691897056c4535b4d8cb3098f (diff)
downloadCMake-36c8f1d15792192790f0841d5658a105f44b420b.zip
CMake-36c8f1d15792192790f0841d5658a105f44b420b.tar.gz
CMake-36c8f1d15792192790f0841d5658a105f44b420b.tar.bz2
ENH: put error checking for missing linker languages
Diffstat (limited to 'Source/cmLocalVisualStudio6Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio6Generator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx
index 56308e3..0f74c20 100644
--- a/Source/cmLocalVisualStudio6Generator.cxx
+++ b/Source/cmLocalVisualStudio6Generator.cxx
@@ -1065,6 +1065,12 @@ void cmLocalVisualStudio6Generator::WriteDSPHeader(std::ostream& fout, const cha
target.GetType() <= cmTarget::MODULE_LIBRARY)
{
const char* linkLanguage = target.GetLinkerLanguage(this->GetGlobalGenerator());
+ if(!linkLanguage)
+ {
+ cmSystemTools::Error("CMake can not determine linker language for target:",
+ target.GetName());
+ return;
+ }
// if CXX is on and the target contains cxx code then add the cxx flags
std::string baseFlagVar = "CMAKE_";
baseFlagVar += linkLanguage;