diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-12-20 15:23:51 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-12-20 15:23:51 (GMT) |
commit | dcc9c131b4376bc02f6291296a01b2b6338c7d19 (patch) | |
tree | ce743c33d251967dd1cd7a1c269554ce8c8e3e14 /Source/cmSourceFilesCommand.cxx | |
parent | a086d083114a959a7aa12964573380fe8c7d4f53 (diff) | |
download | CMake-dcc9c131b4376bc02f6291296a01b2b6338c7d19.zip CMake-dcc9c131b4376bc02f6291296a01b2b6338c7d19.tar.gz CMake-dcc9c131b4376bc02f6291296a01b2b6338c7d19.tar.bz2 |
testing more agressive compatability settings
Diffstat (limited to 'Source/cmSourceFilesCommand.cxx')
-rw-r--r-- | Source/cmSourceFilesCommand.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmSourceFilesCommand.cxx b/Source/cmSourceFilesCommand.cxx index fc1171c..a2d2ada 100644 --- a/Source/cmSourceFilesCommand.cxx +++ b/Source/cmSourceFilesCommand.cxx @@ -20,12 +20,16 @@ bool cmSourceFilesCommand::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 SOURCE_FILES command has been deprecated in CMake version 1.4. You should use the SET command instead.\n"); + this->SetError("The SOURCE_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 (atof(versionValue) > 1.2) + { + cmSystemTools::Message("The SOURCE_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"); + } if(args.size() < 1 ) { |