From 614ba452344e1106f7b1a34a65dc43d87d4d2f23 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Fri, 26 Apr 2002 09:11:53 -0400 Subject: dprecated --- Source/cmSourceFilesRemoveCommand.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/cmSourceFilesRemoveCommand.cxx b/Source/cmSourceFilesRemoveCommand.cxx index b9d3fe1..3c5274a 100644 --- a/Source/cmSourceFilesRemoveCommand.cxx +++ b/Source/cmSourceFilesRemoveCommand.cxx @@ -19,6 +19,13 @@ // cmSourceFilesRemoveCommand bool cmSourceFilesRemoveCommand::InitialPass(std::vector 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 ) { this->SetError("called with incorrect number of arguments"); -- cgit v0.12