summaryrefslogtreecommitdiffstats
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-08-04 14:45:11 (GMT)
committerBrad King <brad.king@kitware.com>2004-08-04 14:45:11 (GMT)
commitb6da1d127196d82c58a3780432e9466b459d8543 (patch)
tree17a8359a57d7c1de7434c9f836d8e2eace470ca3 /Source/cmCPluginAPI.cxx
parent743eed068cbd81747cac0184e7c4a43ce8aab8c3 (diff)
downloadCMake-b6da1d127196d82c58a3780432e9466b459d8543.zip
CMake-b6da1d127196d82c58a3780432e9466b459d8543.tar.gz
CMake-b6da1d127196d82c58a3780432e9466b459d8543.tar.bz2
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/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index 3ca886a..41c9337 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -356,7 +356,8 @@ int cmExecuteCommand(void *arg, const char *name,
for(int i = 0; i < numArgs; ++i)
{
// Assume all arguments are quoted.
- lff.m_Arguments.push_back(cmListFileArgument(args[i], true));
+ lff.m_Arguments.push_back(cmListFileArgument(args[i], true,
+ "[CMake-Plugin]", 0));
}
return mf->ExecuteCommand(lff);
}