summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-06-09 18:34:27 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-06-09 18:34:27 (GMT)
commit26f509dda7e44cf41f7a935f90060422fd61d4a9 (patch)
tree2c44e2c8321b41b48c377312c7e4868390c1dc13 /Source
parent953e059ddfe413e7a4753654627fde6c582fd04c (diff)
downloadCMake-26f509dda7e44cf41f7a935f90060422fd61d4a9.zip
CMake-26f509dda7e44cf41f7a935f90060422fd61d4a9.tar.gz
CMake-26f509dda7e44cf41f7a935f90060422fd61d4a9.tar.bz2
ENH: deprecate old ITK wrap command
Diffstat (limited to 'Source')
-rw-r--r--Source/cmITKWrapTclCommand.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmITKWrapTclCommand.cxx b/Source/cmITKWrapTclCommand.cxx
index 3f10e10..8c6ab51 100644
--- a/Source/cmITKWrapTclCommand.cxx
+++ b/Source/cmITKWrapTclCommand.cxx
@@ -61,6 +61,19 @@ cmITKWrapTclCommand::AddDependencies(cmDependInformation const *info,
// cmITKWrapTclCommand
bool cmITKWrapTclCommand::InitialPass(std::vector<std::string> const& args)
{
+ // deprecated
+ const char* versionValue
+ = m_Makefile->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
+ if (atof(versionValue) > 2.2)
+ {
+ this->SetError("The ITK_WRAP_TCL command was deprecated in CMake version 2.2 and will be removed in later versions of CMake. You should modify your CMakeLists.txt files to use the MACRO command or use CMake 2.2 or earlier for this project.\n");
+ return false;
+ }
+ if (atof(versionValue) > 2.0)
+ {
+ cmSystemTools::Message("The ITK_WRAP_TCL command was deprecated in CMake version 2.2 and will be removed in later versions. You should modify your CMakeLists.txt files to use a MACRO or use CMake 2.2 or earlier.\n","Warning");
+ }
+
if(args.size() < 2 )
{
this->SetError("called with incorrect number of arguments");