From f188d46431fc306e247b60d39e155aec63c43ea5 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 15 Sep 2004 13:31:20 -0400 Subject: [PATCH] BUG: Propagate file name and line number inside FOREACH. Fixes Bug #1169 - Erro messages inside FOREACH have bad filename and line number --- Source/cmForEachCommand.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmForEachCommand.cxx b/Source/cmForEachCommand.cxx index 06f69ac71..0e68dbc33 100644 --- a/Source/cmForEachCommand.cxx +++ b/Source/cmForEachCommand.cxx @@ -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::const_iterator k = m_Functions[c].m_Arguments.begin(); k != m_Functions[c].m_Arguments.end(); ++k)