diff options
author | Brad King <brad.king@kitware.com> | 2002-08-16 13:31:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-08-16 13:31:10 (GMT) |
commit | 7bd3a1e702b1739040bb51eba96b4afb8ffb1462 (patch) | |
tree | 10d50c96fbdd8f159f19d911264ee1192d738c96 | |
parent | c1ad03bedbd71b5f3fef4b6553d1172c8dc48cb5 (diff) | |
download | CMake-7bd3a1e702b1739040bb51eba96b4afb8ffb1462.zip CMake-7bd3a1e702b1739040bb51eba96b4afb8ffb1462.tar.gz CMake-7bd3a1e702b1739040bb51eba96b4afb8ffb1462.tar.bz2 |
ENH: Changed check for which version of instantiators to generate to look for definition of VTK_USE_INSTANTIATOR_NEW instead of an extra argument to VTK_MAKE_INSTANTIATOR.
-rw-r--r-- | Source/cmVTKMakeInstantiatorCommand.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/cmVTKMakeInstantiatorCommand.cxx b/Source/cmVTKMakeInstantiatorCommand.cxx index 1dceb7b..0c6c21a 100644 --- a/Source/cmVTKMakeInstantiatorCommand.cxx +++ b/Source/cmVTKMakeInstantiatorCommand.cxx @@ -42,6 +42,12 @@ cmVTKMakeInstantiatorCommand std::string filePath = m_Makefile->GetCurrentOutputDirectory(); std::string headerPath = filePath; + // Check whether to use the old or new form. + if(m_Makefile->GetDefinition("VTK_USE_INSTANTIATOR_NEW")) + { + oldVersion = false; + } + for(unsigned int i=2;i < args.size();++i) { if(args[i] == "HEADER_LOCATION") @@ -57,11 +63,6 @@ cmVTKMakeInstantiatorCommand return false; } } - else if(args[i] == "USE_INSTANTIATOR_NEW") - { - includesMode = false; - oldVersion = false; - } else if(args[i] == "EXPORT_MACRO") { includesMode = false; |