diff options
author | Brad King <brad.king@kitware.com> | 2002-09-24 18:49:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-09-24 18:49:34 (GMT) |
commit | 94ff97ceed358ca8bf71d1c9a647f6cc10f90142 (patch) | |
tree | d70f249bd7625427b687b52de68c746a9885c5b3 /Source/cmEndIfCommand.cxx | |
parent | db2bd57179ed311c5c7c1654dcb3ff0f27158819 (diff) | |
download | CMake-94ff97ceed358ca8bf71d1c9a647f6cc10f90142.zip CMake-94ff97ceed358ca8bf71d1c9a647f6cc10f90142.tar.gz CMake-94ff97ceed358ca8bf71d1c9a647f6cc10f90142.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'Source/cmEndIfCommand.cxx')
-rw-r--r-- | Source/cmEndIfCommand.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmEndIfCommand.cxx b/Source/cmEndIfCommand.cxx index 7dd1db0..fb408a1 100644 --- a/Source/cmEndIfCommand.cxx +++ b/Source/cmEndIfCommand.cxx @@ -19,6 +19,13 @@ bool cmEndIfCommand::InitialPass(std::vector<std::string> const&) { + const char* versionValue + = m_Makefile->GetDefinition("CMAKE_MINIMUM_REQUIRED_VERSION"); + if (!versionValue || (atof(versionValue) <= 1.4)) + { + return true; + } + this->SetError("An ENDIF command was found outside of a proper IF ENDIF structure. Or its arguments did not match the opening IF command."); return false; } |