summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmITKWrapTclCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmITKWrapTclCommand.cxx b/Source/cmITKWrapTclCommand.cxx
index 8c6ab51..0f69bb1 100644
--- a/Source/cmITKWrapTclCommand.cxx
+++ b/Source/cmITKWrapTclCommand.cxx
@@ -81,7 +81,7 @@ bool cmITKWrapTclCommand::InitialPass(std::vector<std::string> const& args)
}
// keep the target name
m_TargetName = args[0];
- m_Target = &m_Makefile->GetTargets()[m_TargetName.c_str()];
+ m_Target = &m_Makefile->GetTargets().find(m_TargetName)->second;
// Prepare the dependency generator.
m_MakeDepend->SetMakefile(m_Makefile);