소스 검색

dprecated

Ken Martin 23 년 전
부모
커밋
614ba45234
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      Source/cmSourceFilesRemoveCommand.cxx

+ 7 - 0
Source/cmSourceFilesRemoveCommand.cxx

@@ -19,6 +19,13 @@
 // cmSourceFilesRemoveCommand
 // cmSourceFilesRemoveCommand
 bool cmSourceFilesRemoveCommand::InitialPass(std::vector<std::string> const& argsIn)
 bool cmSourceFilesRemoveCommand::InitialPass(std::vector<std::string> const& argsIn)
 {
 {
+  const char* versionValue
+    = m_Makefile->GetDefinition("CMAKE_MINIMUM_REQUIRED_VERSION");
+  if (versionValue && atof(versionValue) > 1.2)
+    {
+    this->SetError("The SOURCE_FILES_REMOVE command has been deprecated in CMake version 1.4. You should use the REMOVE command instead.\n");
+    return false;
+    }
   if(argsIn.size() < 1 )
   if(argsIn.size() < 1 )
     {
     {
     this->SetError("called with incorrect number of arguments");
     this->SetError("called with incorrect number of arguments");