mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 04:10:05 -06:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user