summaryrefslogtreecommitdiffstats
path: root/Source/cmIncludeDirectoryCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmIncludeDirectoryCommand.cxx')
-rw-r--r--Source/cmIncludeDirectoryCommand.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmIncludeDirectoryCommand.cxx b/Source/cmIncludeDirectoryCommand.cxx
index e51116d..a39724a 100644
--- a/Source/cmIncludeDirectoryCommand.cxx
+++ b/Source/cmIncludeDirectoryCommand.cxx
@@ -50,11 +50,9 @@ bool cmIncludeDirectoryCommand
}
if(i->size() == 0)
{
- const char* versionValue =
- this->Makefile->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
const char* errorMessage
= "Empty Include Directory Passed into INCLUDE_DIRECTORIES command.";
- if(atof(versionValue) < 2.5)
+ if(this->Makefile->NeedBackwardsCompatibility(2,4))
{
cmSystemTools::Error(errorMessage);
}