summaryrefslogtreecommitdiff
path: root/Source/cmSourceFile.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-03-22 14:06:52 -0500
committerKen Martin <ken.martin@kitware.com>2006-03-22 14:06:52 -0500
commit10efe3b079caf5237e01d31b09f7947c77c7458f (patch)
tree4df9c11b285a62fdeb1c7868520e9303f95fd26e /Source/cmSourceFile.cxx
parent43b9f184c2f9cacce2917577f9469f71f64885c5 (diff)
downloadcmake-10efe3b079caf5237e01d31b09f7947c77c7458f.tar.gz
ENH: added some new functionality
Diffstat (limited to 'Source/cmSourceFile.cxx')
-rw-r--r--Source/cmSourceFile.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmSourceFile.cxx b/Source/cmSourceFile.cxx
index ac9f28b572..303ff78cc4 100644
--- a/Source/cmSourceFile.cxx
+++ b/Source/cmSourceFile.cxx
@@ -179,6 +179,13 @@ void cmSourceFile::SetProperty(const char* prop, const char* value)
const char *cmSourceFile::GetProperty(const char* prop) const
{
+ // watch for special "computed" properties that are dependent on other
+ // properties or variables, always recompute them
+ if (!strcmp(prop,"LOCATION"))
+ {
+ return this->FullPath.c_str();
+ }
+
std::map<cmStdString,cmStdString>::const_iterator i =
this->Properties.find(prop);
if (i != this->Properties.end())