diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-04-26 13:11:53 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-04-26 13:11:53 (GMT) |
commit | 614ba452344e1106f7b1a34a65dc43d87d4d2f23 (patch) | |
tree | 3dff88b102470b433f164f2cc2576af2795b6b99 /Source/cmSourceFilesRemoveCommand.cxx | |
parent | 94d407d9edcff753ff39482c17495bff43ee8bc9 (diff) | |
download | CMake-614ba452344e1106f7b1a34a65dc43d87d4d2f23.zip CMake-614ba452344e1106f7b1a34a65dc43d87d4d2f23.tar.gz CMake-614ba452344e1106f7b1a34a65dc43d87d4d2f23.tar.bz2 |
dprecated
Diffstat (limited to 'Source/cmSourceFilesRemoveCommand.cxx')
-rw-r--r-- | Source/cmSourceFilesRemoveCommand.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
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<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 ) { this->SetError("called with incorrect number of arguments"); |