summaryrefslogtreecommitdiffstats
path: root/Source/cmCableClassSet.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmCableClassSet.cxx')
-rw-r--r--Source/cmCableClassSet.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmCableClassSet.cxx b/Source/cmCableClassSet.cxx
index a84a63d..75f284e 100644
--- a/Source/cmCableClassSet.cxx
+++ b/Source/cmCableClassSet.cxx
@@ -164,7 +164,8 @@ void cmCableClassSet::ParseAndAddElement(const char* element,
{
std::string setName = setDereference.match(1);
cmData* d = makefile->LookupData(setName.c_str());
- cmCableClassSet* classSet = dynamic_cast<cmCableClassSet*>(d);
+ // This should be a dynamic_cast, but we don't want to require RTTI.
+ cmCableClassSet* classSet = static_cast<cmCableClassSet*>(d);
if(classSet)
{
this->AddCableClassSet(*classSet, sources);