summaryrefslogtreecommitdiff
path: root/Source/cmSetDirectoryPropertiesCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-05-20 16:56:34 -0400
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-05-20 16:56:34 -0400
commit3031467e33e61d9e7daa3357ee5f6b31c233e7fd (patch)
tree971ff1363cd96f5821c1c59bd633801134578c58 /Source/cmSetDirectoryPropertiesCommand.cxx
parent17d6f9e17062d0ddf392823ba51e92f31ebdf7d5 (diff)
downloadcmake-3031467e33e61d9e7daa3357ee5f6b31c233e7fd.tar.gz
ENH: Implement additional make clean files as a directory property instead of cmake variable
Diffstat (limited to 'Source/cmSetDirectoryPropertiesCommand.cxx')
-rw-r--r--Source/cmSetDirectoryPropertiesCommand.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/cmSetDirectoryPropertiesCommand.cxx b/Source/cmSetDirectoryPropertiesCommand.cxx
index 4256e623cb..1c3049c877 100644
--- a/Source/cmSetDirectoryPropertiesCommand.cxx
+++ b/Source/cmSetDirectoryPropertiesCommand.cxx
@@ -68,9 +68,15 @@ bool cmSetDirectoryPropertiesCommand::InitialPass(
}
else
{
- std::string emsg = "Unknown directory property: " + args[1];
- this->SetError(emsg.c_str());
- return false;
+ if ( prop == "ADDITIONAL_MAKE_CLEAN_FILES" )
+ {
+ // This property is not inherrited
+ if ( strcmp(m_Makefile->GetCurrentDirectory(), m_Makefile->GetStartDirectory()) != 0 )
+ {
+ continue;
+ }
+ }
+ m_Makefile->SetProperty(prop.c_str(), value.c_str());
}
}