summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2008-02-29 20:41:35 (GMT)
committerKen Martin <ken.martin@kitware.com>2008-02-29 20:41:35 (GMT)
commit0e82aafff0ec96d4022a73cf9a32d1240e36f380 (patch)
tree5e113b6b1f4d4b151972fb39d171a4242787dcf5
parentab851bf36b3d32d5f5284718d1c660356e4c56fb (diff)
downloadCMake-0e82aafff0ec96d4022a73cf9a32d1240e36f380.zip
CMake-0e82aafff0ec96d4022a73cf9a32d1240e36f380.tar.gz
CMake-0e82aafff0ec96d4022a73cf9a32d1240e36f380.tar.bz2
ENH: case
-rw-r--r--Source/cmCmakePolicyCOmmand.cxx59
1 files changed, 0 insertions, 59 deletions
diff --git a/Source/cmCmakePolicyCOmmand.cxx b/Source/cmCmakePolicyCOmmand.cxx
deleted file mode 100644
index b87e7ae..0000000
--- a/Source/cmCmakePolicyCOmmand.cxx
+++ /dev/null
@@ -1,59 +0,0 @@
-/*=========================================================================
-
- Program: CMake - Cross-Platform Makefile Generator
- Module: $RCSfile$
- Language: C++
- Date: $Date$
- Version: $Revision$
-
- Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
- See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
-
- This software is distributed WITHOUT ANY WARRANTY; without even
- the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- PURPOSE. See the above copyright notices for more information.
-
-=========================================================================*/
-#include "cmCMakePolicyCommand.h"
-
-#include "cmVersion.h"
-
-// cmCMakePolicyCommand
-bool cmCMakePolicyCommand
-::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &)
-{
- if (args.size() < 1)
- {
- this->SetError("cmake_policy requires at least one argument.");
- return false;
- }
-
- if (args[0] == "OLD" && args.size() == 2)
- {
- return this->Makefile->SetPolicy(args[1].c_str(),cmPolicies::OLD);
- }
-
- if (args[0] == "NEW" && args.size() == 2)
- {
- return this->Makefile->SetPolicy(args[1].c_str(),cmPolicies::NEW);
- }
-
- if (args[0] == "VERSION" && args.size() == 2)
- {
- return this->Makefile->SetPolicyVersion(args[1].c_str());
- }
-
- if (args[0] == "PUSH" && args.size() == 1)
- {
- return this->Makefile->PushPolicy();
- }
-
- if (args[0] == "POP" && args.size() == 1)
- {
- return this->Makefile->PopPolicy();
- }
-
- this->SetError("incorrect arguments for cmake_policy.");
- return false;
-}
-