BUG: Propagate file name and line number inside FOREACH. Fixes Bug #1169 - Erro messages inside FOREACH have bad filename and line number

This commit is contained in:
Andy Cedilnik 2004-09-15 13:31:20 -04:00
parent e192b45f4b
commit f188d46431
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf)
// Replace the loop variable and then invoke the command.
cmListFileFunction newLFF;
newLFF.m_Name = m_Functions[c].m_Name;
newLFF.m_FilePath = m_Functions[c].m_FilePath;
newLFF.m_Line = m_Functions[c].m_Line;
for (std::vector<cmListFileArgument>::const_iterator k =
m_Functions[c].m_Arguments.begin();
k != m_Functions[c].m_Arguments.end(); ++k)