summaryrefslogtreecommitdiffstats
path: root/Source/cmLoadCommandCommand.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-10 19:33:06 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-11 17:49:06 (GMT)
commita44dab461ffe269618f008f16e249d9101c5bd88 (patch)
tree404a5531a43d1636402586275cccff23fea76def /Source/cmLoadCommandCommand.cxx
parentc734c8501b5e8865b8a2e92a8834644becb181e4 (diff)
downloadCMake-a44dab461ffe269618f008f16e249d9101c5bd88.zip
CMake-a44dab461ffe269618f008f16e249d9101c5bd88.tar.gz
CMake-a44dab461ffe269618f008f16e249d9101c5bd88.tar.bz2
cmState: introduce method for adding scripted commands
Diffstat (limited to 'Source/cmLoadCommandCommand.cxx')
-rw-r--r--Source/cmLoadCommandCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx
index 5cf1853..8bd212c 100644
--- a/Source/cmLoadCommandCommand.cxx
+++ b/Source/cmLoadCommandCommand.cxx
@@ -246,7 +246,7 @@ bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& args,
// create a function blocker and set it up
cmLoadedCommand* f = new cmLoadedCommand();
(*initFunction)(&f->info);
- this->Makefile->GetState()->AddCommand(f);
+ this->Makefile->GetState()->AddScriptedCommand(args[0], f);
return true;
}
this->SetError("Attempt to load command failed. "