summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-03-22 19:06:52 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-03-22 19:06:52 (GMT)
commit10efe3b079caf5237e01d31b09f7947c77c7458f (patch)
tree4df9c11b285a62fdeb1c7868520e9303f95fd26e /Source/cmSourceFile.cxx
parent43b9f184c2f9cacce2917577f9469f71f64885c5 (diff)
downloadCMake-10efe3b079caf5237e01d31b09f7947c77c7458f.zip
CMake-10efe3b079caf5237e01d31b09f7947c77c7458f.tar.gz
CMake-10efe3b079caf5237e01d31b09f7947c77c7458f.tar.bz2
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 ac9f28b..303ff78 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())