summaryrefslogtreecommitdiffstats
path: root/Source/cmForEachCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-09-15 17:31:20 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-09-15 17:31:20 (GMT)
commitf188d46431fc306e247b60d39e155aec63c43ea5 (patch)
treedaf82dadb5e11a6aab9719bb2719cbc654a17e97 /Source/cmForEachCommand.cxx
parente192b45f4b8ac8640778422f16023c1fa3e019db (diff)
downloadCMake-f188d46431fc306e247b60d39e155aec63c43ea5.zip
CMake-f188d46431fc306e247b60d39e155aec63c43ea5.tar.gz
CMake-f188d46431fc306e247b60d39e155aec63c43ea5.tar.bz2
BUG: Propagate file name and line number inside FOREACH. Fixes Bug #1169 - Erro messages inside FOREACH have bad filename and line number
Diffstat (limited to 'Source/cmForEachCommand.cxx')
-rw-r--r--Source/cmForEachCommand.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmForEachCommand.cxx b/Source/cmForEachCommand.cxx
index 06f69ac..0e68dbc 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<cmListFileArgument>::const_iterator k =
m_Functions[c].m_Arguments.begin();
k != m_Functions[c].m_Arguments.end(); ++k)