diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-09-18 15:36:58 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-09-18 15:36:58 (GMT) |
commit | f835a83b8d05067522d65756161d7cf5034bb3c4 (patch) | |
tree | 78bcd04761c53e19b50db827621faef79ba3c309 /Source | |
parent | bd7ffbc258c1ee206d65dd6cc50c207b28057ae2 (diff) | |
download | CMake-f835a83b8d05067522d65756161d7cf5034bb3c4.zip CMake-f835a83b8d05067522d65756161d7cf5034bb3c4.tar.gz CMake-f835a83b8d05067522d65756161d7cf5034bb3c4.tar.bz2 |
better error reporting
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLoadCommandCommand.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx index 7dec12c..94a0437 100644 --- a/Source/cmLoadCommandCommand.cxx +++ b/Source/cmLoadCommandCommand.cxx @@ -206,6 +206,11 @@ bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& argsIn) // create a function blocker and set it up cmLoadedCommand *f = new cmLoadedCommand(); f->m_commandName = (*nameFunction)(); + if (!initFunction) + { + this->SetError("Attempt to load command failed. No init function found."); + return false; + } (*initFunction)(&f->info); m_Makefile->AddCommand(f); } |