ソースを参照

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

Andy Cedilnik 21 年 前
コミット
f188d46431
1 ファイル変更2 行追加0 行削除
  1. 2 0
      Source/cmForEachCommand.cxx

+ 2 - 0
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)