summaryrefslogtreecommitdiffstats
path: root/Source/cmIncludeDirectoryCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-03-08 14:50:56 (GMT)
committerBrad King <brad.king@kitware.com>2008-03-08 14:50:56 (GMT)
commitbf732ec464a38b83b312827b61a5ab19a016b824 (patch)
treea2ee48d6fe282ef5f4ababce7156832ff21c173f /Source/cmIncludeDirectoryCommand.cxx
parent959bd61e3771ef362c2f8fc8e2ce5c8cecdb0fc2 (diff)
downloadCMake-bf732ec464a38b83b312827b61a5ab19a016b824.zip
CMake-bf732ec464a38b83b312827b61a5ab19a016b824.tar.gz
CMake-bf732ec464a38b83b312827b61a5ab19a016b824.tar.bz2
BUG: Fix include_directories command to produce an immediately whether or not 2.4 compatibility is enabled. CMake 2.4 already produced an error, just not immediately.
Diffstat (limited to 'Source/cmIncludeDirectoryCommand.cxx')
-rw-r--r--Source/cmIncludeDirectoryCommand.cxx13
1 files changed, 2 insertions, 11 deletions
diff --git a/Source/cmIncludeDirectoryCommand.cxx b/Source/cmIncludeDirectoryCommand.cxx
index a39724a..1c8bcc1 100644
--- a/Source/cmIncludeDirectoryCommand.cxx
+++ b/Source/cmIncludeDirectoryCommand.cxx
@@ -50,17 +50,8 @@ bool cmIncludeDirectoryCommand
}
if(i->size() == 0)
{
- const char* errorMessage
- = "Empty Include Directory Passed into INCLUDE_DIRECTORIES command.";
- if(this->Makefile->NeedBackwardsCompatibility(2,4))
- {
- cmSystemTools::Error(errorMessage);
- }
- else
- {
- this->SetError(errorMessage);
- return false;
- }
+ this->SetError("given empty-string as include directory.");
+ return false;
}
this->AddDirectory(i->c_str(),before,system);