summaryrefslogtreecommitdiffstats
path: root/Source/cmAbstractFilesCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmAbstractFilesCommand.cxx')
-rw-r--r--Source/cmAbstractFilesCommand.cxx12
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)
{