summaryrefslogtreecommitdiff
path: root/Source/cmForEachCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-08-04 10:45:11 -0400
committerBrad King <brad.king@kitware.com>2004-08-04 10:45:11 -0400
commitb6da1d127196d82c58a3780432e9466b459d8543 (patch)
tree17a8359a57d7c1de7434c9f836d8e2eace470ca3 /Source/cmForEachCommand.cxx
parent743eed068cbd81747cac0184e7c4a43ce8aab8c3 (diff)
downloadcmake-b6da1d127196d82c58a3780432e9466b459d8543.tar.gz
ENH: Added support for special variables CMAKE_CURRENT_LIST_FILE and CMAKE_CURRENT_LIST_LINE that evaluate to the file name and line number in which they appear. This implements the feature request from bug 1012.
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 f8bda28fd8..06f69ac71e 100644
--- a/Source/cmForEachCommand.cxx
+++ b/Source/cmForEachCommand.cxx
@@ -58,6 +58,8 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf)
cmSystemTools::ReplaceString(tmps, variable.c_str(), j->c_str());
arg.Value = tmps;
arg.Quoted = k->Quoted;
+ arg.FilePath = k->FilePath;
+ arg.Line = k->Line;
newLFF.m_Arguments.push_back(arg);
}
mf.ExecuteCommand(newLFF);