diff options
author | Brad King <brad.king@kitware.com> | 2008-03-04 23:41:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-03-04 23:41:52 (GMT) |
commit | 53e0ed3273c1a4a8f304f482220a474c3bc0e689 (patch) | |
tree | c963ebae42381cfe9fdd91c23073810bc41438b0 /Source/cmIncludeDirectoryCommand.cxx | |
parent | cd4d2acbe654ca57a9ffc7ca34dcf4835bfc77c3 (diff) | |
download | CMake-53e0ed3273c1a4a8f304f482220a474c3bc0e689.zip CMake-53e0ed3273c1a4a8f304f482220a474c3bc0e689.tar.gz CMake-53e0ed3273c1a4a8f304f482220a474c3bc0e689.tar.bz2 |
BUG: Fix crash when CMAKE_BACKWARDS_COMPATIBILITY is not set.
Diffstat (limited to 'Source/cmIncludeDirectoryCommand.cxx')
-rw-r--r-- | Source/cmIncludeDirectoryCommand.cxx | 4 |
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); } |