summaryrefslogtreecommitdiffstats
path: root/Source/cmIncludeDirectoryCommand.cxx
diff options
context:
space:
mode:
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);