summaryrefslogtreecommitdiffstats
path: root/Source/cmSetDirectoryPropertiesCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-05-20 20:56:34 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-05-20 20:56:34 (GMT)
commit3031467e33e61d9e7daa3357ee5f6b31c233e7fd (patch)
tree971ff1363cd96f5821c1c59bd633801134578c58 /Source/cmSetDirectoryPropertiesCommand.cxx
parent17d6f9e17062d0ddf392823ba51e92f31ebdf7d5 (diff)
downloadCMake-3031467e33e61d9e7daa3357ee5f6b31c233e7fd.zip
CMake-3031467e33e61d9e7daa3357ee5f6b31c233e7fd.tar.gz
CMake-3031467e33e61d9e7daa3357ee5f6b31c233e7fd.tar.bz2
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 4256e62..1c3049c 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());
}
}