diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-04-19 18:03:47 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-04-19 18:03:47 (GMT) |
commit | e8e42bde663afe71c92fd6d62d95a464024ad2f8 (patch) | |
tree | 3911a81a2602146da4364a493faac86d139b887d | |
parent | 077f81d3599c520493e8ed82e6b6026585ca5e76 (diff) | |
download | CMake-e8e42bde663afe71c92fd6d62d95a464024ad2f8.zip CMake-e8e42bde663afe71c92fd6d62d95a464024ad2f8.tar.gz CMake-e8e42bde663afe71c92fd6d62d95a464024ad2f8.tar.bz2 |
added deprecated warnings for version 1.4 or later
-rw-r--r-- | Source/cmAbstractFilesCommand.cxx | 8 | ||||
-rw-r--r-- | Source/cmSourceFilesCommand.cxx | 8 | ||||
-rw-r--r-- | Source/cmWrapExcludeFilesCommand.cxx | 8 |
3 files changed, 24 insertions, 0 deletions
diff --git a/Source/cmAbstractFilesCommand.cxx b/Source/cmAbstractFilesCommand.cxx index 9941e14..85d2a54 100644 --- a/Source/cmAbstractFilesCommand.cxx +++ b/Source/cmAbstractFilesCommand.cxx @@ -19,6 +19,14 @@ // cmAbstractFilesCommand bool cmAbstractFilesCommand::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 ABSTRACT_FILES command has been deprecated in CMake version 1.4. You should use the SET_SOURCE_FILES_PROPERTIES command instead.\n"); + return false; + } + if(argsIn.size() < 1 ) { this->SetError("called with incorrect number of arguments"); diff --git a/Source/cmSourceFilesCommand.cxx b/Source/cmSourceFilesCommand.cxx index 2740833..0024f9e 100644 --- a/Source/cmSourceFilesCommand.cxx +++ b/Source/cmSourceFilesCommand.cxx @@ -19,6 +19,14 @@ // cmSourceFilesCommand bool cmSourceFilesCommand::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 command has been deprecated in CMake version 1.4. You should use the SET command instead.\n"); + return false; + } + if(argsIn.size() < 1 ) { this->SetError("called with incorrect number of arguments"); diff --git a/Source/cmWrapExcludeFilesCommand.cxx b/Source/cmWrapExcludeFilesCommand.cxx index 9e020d1..2bc4e84 100644 --- a/Source/cmWrapExcludeFilesCommand.cxx +++ b/Source/cmWrapExcludeFilesCommand.cxx @@ -19,6 +19,14 @@ // cmWrapExcludeFilesCommand bool cmWrapExcludeFilesCommand::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 WRAP_EXCLUDE_FILES command has been deprecated in CMake version 1.4. You should use the SET_SOURCE_FILES_PROPERTIES command instead.\n"); + return false; + } + if(argsIn.size() < 1 ) { this->SetError("called with incorrect number of arguments"); |