mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 09:59:20 -05:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user