diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-12-13 14:52:05 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-12-13 14:52:05 (GMT) |
commit | 858c6c9a02bc2f0a8ab1a9a6f4ab7f3c353ef049 (patch) | |
tree | b3fe3c861dee5513f37f1112a166a1634683672b | |
parent | ad8504701e1316f269eb62882f81bcbd7f50a71d (diff) | |
download | CMake-858c6c9a02bc2f0a8ab1a9a6f4ab7f3c353ef049.zip CMake-858c6c9a02bc2f0a8ab1a9a6f4ab7f3c353ef049.tar.gz CMake-858c6c9a02bc2f0a8ab1a9a6f4ab7f3c353ef049.tar.bz2 |
made more strict
-rw-r--r-- | Source/cmIfCommand.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx index df1b06c..db7cc00 100644 --- a/Source/cmIfCommand.cxx +++ b/Source/cmIfCommand.cxx @@ -82,13 +82,6 @@ bool cmIfFunctionBlocker::ShouldRemove(const cmListFileFunction& lff, void cmIfFunctionBlocker:: ScopeEnded(cmMakefile &mf) { - const char* versionValue - = mf.GetDefinition("CMAKE_MINIMUM_REQUIRED_VERSION"); - if (!versionValue || (atof(versionValue) <= 1.4)) - { - return; - } - std::string errmsg = "The end of a CMakeLists file was reached with an IF statement that was not closed properly.\nWithin the directory: "; errmsg += mf.GetCurrentDirectory(); errmsg += "\nThe arguments are: "; @@ -100,7 +93,7 @@ ScopeEnded(cmMakefile &mf) errmsg += (j->Quoted?"\"":""); errmsg += " "; } - cmSystemTools::Error(errmsg.c_str()); + cmSystemTools::Message(errmsg.c_str(), "Warning"); } bool cmIfCommand::InvokeInitialPass(const std::vector<cmListFileArgument>& args) |