added deprecated warnings for version 1.4 or later

This commit is contained in:
Ken Martin 2002-04-19 14:03:47 -04:00
parent 077f81d359
commit e8e42bde66
3 changed files with 24 additions and 0 deletions

View File

@ -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");

View File

@ -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");

View File

@ -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");