diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-09-15 17:31:20 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-09-15 17:31:20 (GMT) |
commit | f188d46431fc306e247b60d39e155aec63c43ea5 (patch) | |
tree | daf82dadb5e11a6aab9719bb2719cbc654a17e97 /Source/cmForEachCommand.cxx | |
parent | e192b45f4b8ac8640778422f16023c1fa3e019db (diff) | |
download | CMake-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.cxx | 2 |
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) |