From 3348131819bb30a592898631df11aaf8ad8db4d2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 13 Dec 2002 16:16:48 -0500 Subject: ENH: Added source file property OBJECT_DEPENDS to support generated header files included in non-generated sources. --- Source/cmSetSourceFilesPropertiesCommand.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Source/cmSetSourceFilesPropertiesCommand.cxx') diff --git a/Source/cmSetSourceFilesPropertiesCommand.cxx b/Source/cmSetSourceFilesPropertiesCommand.cxx index 3933321141..2164e35f34 100644 --- a/Source/cmSetSourceFilesPropertiesCommand.cxx +++ b/Source/cmSetSourceFilesPropertiesCommand.cxx @@ -64,6 +64,19 @@ bool cmSetSourceFilesPropertiesCommand::InitialPass( } propertyPairs.push_back(*j); } + else if(*j == "OBJECT_DEPENDS") + { + doingFiles = false; + propertyPairs.push_back("OBJECT_DEPENDS"); + ++j; + if(j == args.end()) + { + this->SetError("called with incorrect number of arguments " + "OBJECT_DEPENDS with no dependencies"); + return false; + } + propertyPairs.push_back(*j); + } else if(*j == "PROPERTIES") { doingFiles = false; -- cgit v1.2.1