summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.h
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/cmSourceFile.h
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/cmSourceFile.h')
-rw-r--r--Source/cmSourceFile.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h
index 423e440..1eca56e 100644
--- a/Source/cmSourceFile.h
+++ b/Source/cmSourceFile.h
@@ -53,6 +53,10 @@ public:
const char *GetProperty(const char *prop) const;
bool GetPropertyAsBool(const char *prop) const;
+ /** Implement getting a property when called from a CMake language
+ command like get_property or get_source_file_property. */
+ const char* GetPropertyForUser(const char *prop);
+
/**
* The full path to the file. The non-const version of this method
* may attempt to locate the file on disk and finalize its location.