Add some error checking for missing include directories and link libraries

This commit is contained in:
Andy Cedilnik 2003-01-30 14:34:40 -05:00
parent c4bf103772
commit 6b228ff924
3 changed files with 16 additions and 0 deletions

View File

@ -35,6 +35,11 @@ bool cmIncludeDirectoryCommand::InitialPass(std::vector<std::string> const& args
for(; i != args.end(); ++i)
{
if ( *i == "NOTFOUND" )
{
this->SetError("CMake attempted to put directory that was not found to the list of include directories.");
return false;
}
m_Makefile->AddIncludeDirectory((*i).c_str(), before);
}
return true;

View File

@ -28,6 +28,11 @@ bool cmLinkLibrariesCommand::InitialPass(std::vector<std::string> const& args)
for(std::vector<std::string>::const_iterator i = args.begin();
i != args.end(); ++i)
{
if ( *i == "NOTFOUND" )
{
this->SetError("CMake attempted to put directory that was not found to the list of include directories.");
return false;
}
if (*i == "debug")
{
++i;

View File

@ -36,6 +36,12 @@ bool cmTargetLinkLibrariesCommand::InitialPass(std::vector<std::string> const& a
for(++i; i != args.end(); ++i)
{
if ( *i == "NOTFOUND" )
{
this->SetError("CMake attempted to put library that was not found to the list of libraries.");
return false;
}
if (*i == "debug")
{
++i;