summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeTargetDepends.cxx
diff options
context:
space:
mode:
authorNicolas Despres <nicolas.despres@gmail.com>2011-03-20 16:57:42 (GMT)
committerPeter Collingbourne <peter@pcc.me.uk>2011-10-02 17:30:42 (GMT)
commit3db2973bd2ceb65a0d88ed6a3428e17cc9f0e182 (patch)
treea01dd9538a35dad32d0e1948a97b3a29f28c1d1d /Source/cmComputeTargetDepends.cxx
parent89bdc3e213b82759c3f916ef746c0bc752ce32d2 (diff)
downloadCMake-3db2973bd2ceb65a0d88ed6a3428e17cc9f0e182.zip
CMake-3db2973bd2ceb65a0d88ed6a3428e17cc9f0e182.tar.gz
CMake-3db2973bd2ceb65a0d88ed6a3428e17cc9f0e182.tar.bz2
Refactor TargetTypeNames.
Make it a static method instead of an array. It is safer for the type checking and if we add a new target type we will be warned to add a case to the switch.
Diffstat (limited to 'Source/cmComputeTargetDepends.cxx')
-rw-r--r--Source/cmComputeTargetDepends.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmComputeTargetDepends.cxx b/Source/cmComputeTargetDepends.cxx
index 3a0ed06..8e701c4 100644
--- a/Source/cmComputeTargetDepends.cxx
+++ b/Source/cmComputeTargetDepends.cxx
@@ -404,7 +404,7 @@ cmComputeTargetDepends
// Describe the depender.
e << " \"" << depender->GetName() << "\" of type "
- << cmTarget::TargetTypeNames[depender->GetType()] << "\n";
+ << cmTarget::GetTargetTypeName(depender->GetType()) << "\n";
// List its dependencies that are inside the component.
EdgeList const& nl = this->InitialGraph[i];