summaryrefslogtreecommitdiffstats
path: root/Source/cmGetPropertyCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-30 16:21:54 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-30 16:21:54 (GMT)
commitd5db5a275a1f6839d70ca0c76dfedb2e63705b58 (patch)
treed11704d58d75c7ed0e141caa2ba12c6ffde8e815 /Source/cmGetPropertyCommand.cxx
parentc4093afc52967c987f0cd2947949899642db977b (diff)
downloadCMake-d5db5a275a1f6839d70ca0c76dfedb2e63705b58.zip
CMake-d5db5a275a1f6839d70ca0c76dfedb2e63705b58.tar.gz
CMake-d5db5a275a1f6839d70ca0c76dfedb2e63705b58.tar.bz2
BUG: Add cmSourceFile::GetPropertyForUser to centralize the LOCATION property hack. This fixes the LOCATION property when retrieved via the get_property command.
Diffstat (limited to 'Source/cmGetPropertyCommand.cxx')
-rw-r--r--Source/cmGetPropertyCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGetPropertyCommand.cxx b/Source/cmGetPropertyCommand.cxx
index 7622cf2..830be0c 100644
--- a/Source/cmGetPropertyCommand.cxx
+++ b/Source/cmGetPropertyCommand.cxx
@@ -287,7 +287,8 @@ bool cmGetPropertyCommand::HandleSourceMode()
if(cmSourceFile* sf =
this->Makefile->GetOrCreateSource(this->Name.c_str()))
{
- return this->StoreResult(sf->GetProperty(this->PropertyName.c_str()));
+ return
+ this->StoreResult(sf->GetPropertyForUser(this->PropertyName.c_str()));
}
else
{