summaryrefslogtreecommitdiffstats
path: root/Source/cmAbstractFilesCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-01-09 13:44:25 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-01-09 13:44:25 (GMT)
commit4f42971be8149e5a88e2becfef93a6f806d2b09f (patch)
tree2d1d8c200b65e1ffaf3467c666de0bd346c15288 /Source/cmAbstractFilesCommand.cxx
parentefb5d5acca96e5b8579a09c4934aecef7b0160c8 (diff)
downloadCMake-4f42971be8149e5a88e2becfef93a6f806d2b09f.zip
CMake-4f42971be8149e5a88e2becfef93a6f806d2b09f.tar.gz
CMake-4f42971be8149e5a88e2becfef93a6f806d2b09f.tar.bz2
now complains more
Diffstat (limited to 'Source/cmAbstractFilesCommand.cxx')
-rw-r--r--Source/cmAbstractFilesCommand.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/cmAbstractFilesCommand.cxx b/Source/cmAbstractFilesCommand.cxx
index e0601cb..b5e78c1 100644
--- a/Source/cmAbstractFilesCommand.cxx
+++ b/Source/cmAbstractFilesCommand.cxx
@@ -22,17 +22,15 @@
bool cmAbstractFilesCommand::InitialPass(std::vector<std::string> const& args)
{
const char* versionValue
- = m_Makefile->GetDefinition("CMAKE_MINIMUM_REQUIRED_VERSION");
- if (versionValue && atof(versionValue) > 1.2)
+ = m_Makefile->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
+ if (atof(versionValue) > 1.4)
{
- 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");
+ this->SetError("The ABSTRACT_FILES command was deprecated in CMake version 1.4 and will be removed in later versions of CMake. You should modify your CMakeLists.txt files to use the SET command instead, or set the cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.2 or less.\n");
return false;
}
-
- if(args.size() < 1 )
+ if (atof(versionValue) > 1.2)
{
- this->SetError("called with incorrect number of arguments");
- return false;
+ cmSystemTools::Message("The ABSTRACT_FILES command was deprecated in CMake version 1.4 and will be removed in later versions. You should modify your CMakeLists.txt files to use the SET command instead, or set the cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.2 or less.\n","Warning");
}
bool ret = true;