summaryrefslogtreecommitdiffstats
path: root/Source/cmUnexpectedCommand.cxx
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-04-07 18:40:59 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2019-07-21 07:25:32 (GMT)
commit0101ace1319b5c97472649ec809b67299e2a46ce (patch)
treebfe5efb6d3e133e4b96994f5cd65d5417a26ff12 /Source/cmUnexpectedCommand.cxx
parent015001aaf138119f4825e3c84c0845c5127f9088 (diff)
downloadCMake-0101ace1319b5c97472649ec809b67299e2a46ce.zip
CMake-0101ace1319b5c97472649ec809b67299e2a46ce.tar.gz
CMake-0101ace1319b5c97472649ec809b67299e2a46ce.tar.bz2
cmUnexpectedCommand: Replace with lambda expression
Diffstat (limited to 'Source/cmUnexpectedCommand.cxx')
-rw-r--r--Source/cmUnexpectedCommand.cxx22
1 files changed, 0 insertions, 22 deletions
diff --git a/Source/cmUnexpectedCommand.cxx b/Source/cmUnexpectedCommand.cxx
deleted file mode 100644
index a8de9e6..0000000
--- a/Source/cmUnexpectedCommand.cxx
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
- file Copyright.txt or https://cmake.org/licensing for details. */
-#include "cmUnexpectedCommand.h"
-
-#include <stdlib.h>
-
-#include "cmMakefile.h"
-
-class cmExecutionStatus;
-
-bool cmUnexpectedCommand::InitialPass(std::vector<std::string> const&,
- cmExecutionStatus&)
-{
- const char* versionValue =
- this->Makefile->GetDefinition("CMAKE_MINIMUM_REQUIRED_VERSION");
- if (this->Name == "endif" && (!versionValue || atof(versionValue) <= 1.4)) {
- return true;
- }
-
- this->SetError(this->Error);
- return false;
-}