diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-17 20:16:06 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-17 20:16:06 (GMT) |
commit | 0415b58573ba63a9c6168d8af05a165ea5e24774 (patch) | |
tree | ef79785f99fd23797aa8dcb27083c6a0cc9c1c5a /Source/cmAbstractFilesCommand.cxx | |
parent | b7c368b5e37289f85f2155db1b594d6bc4a3f0a4 (diff) | |
download | CMake-0415b58573ba63a9c6168d8af05a165ea5e24774.zip CMake-0415b58573ba63a9c6168d8af05a165ea5e24774.tar.gz CMake-0415b58573ba63a9c6168d8af05a165ea5e24774.tar.bz2 |
ENH: backwards compatible for VTK 4.0, add cmake version requires
Diffstat (limited to 'Source/cmAbstractFilesCommand.cxx')
-rw-r--r-- | Source/cmAbstractFilesCommand.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/cmAbstractFilesCommand.cxx b/Source/cmAbstractFilesCommand.cxx index 74c02f3..9941e14 100644 --- a/Source/cmAbstractFilesCommand.cxx +++ b/Source/cmAbstractFilesCommand.cxx @@ -40,10 +40,14 @@ bool cmAbstractFilesCommand::InitialPass(std::vector<std::string> const& argsIn) } else { - m += *j; - m += "\n"; - ret = false; - } + // for VTK 4.0 we have to support missing abstract sources + if(m_Makefile->GetDefinition("CMAKE_MINIMUM_REQUIRED_VERSION")) + { + m += *j; + m += "\n"; + ret = false; + } + } } if(!ret) { |