summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio71Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-04-05 14:22:18 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-04-05 14:22:18 (GMT)
commit0255dab023023e64a27eda035634fea023cab0bc (patch)
treedea2ed53f48c1a2a37cabd3bbbf862cc4895fde8 /Source/cmGlobalVisualStudio71Generator.cxx
parent389f24f777b790b12759184c96c4690a771f941b (diff)
downloadCMake-0255dab023023e64a27eda035634fea023cab0bc.zip
CMake-0255dab023023e64a27eda035634fea023cab0bc.tar.gz
CMake-0255dab023023e64a27eda035634fea023cab0bc.tar.bz2
BUG: fix for bug 1702, better error message for GUID missing
Diffstat (limited to 'Source/cmGlobalVisualStudio71Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio71Generator.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio71Generator.cxx b/Source/cmGlobalVisualStudio71Generator.cxx
index e5583c1..0716773 100644
--- a/Source/cmGlobalVisualStudio71Generator.cxx
+++ b/Source/cmGlobalVisualStudio71Generator.cxx
@@ -295,8 +295,17 @@ void cmGlobalVisualStudio71Generator::WriteProjectDepends(std::ostream& fout,
// target names anyways.
name.erase(name.begin(), name.begin() + 27);
}
- fout << "\t\t{" << this->GetGUID(name.c_str()) << "} = {"
- << this->GetGUID(name.c_str()) << "}\n";
+ std::string guid = this->GetGUID(name.c_str());
+ if(guid.size() == 0)
+ {
+ std::string m = "Target: ";
+ m += target.GetName();
+ m += " depends on unknown target: ";
+ m += name;
+ cmSystemTools::Error(m.c_str());
+ }
+
+ fout << "\t\t{" << guid << "} = {" << guid << "}\n";
}
}
}