summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-08 12:55:46 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-08 18:05:36 (GMT)
commitf154475b65738444414312d7d5a255f3220d90c6 (patch)
treeb5a619eb570bfd4be813af7283c58be727e52624 /Source/cmTarget.h
parentcfc2cf9559eacbf45d04249ee1dd7f75bb0cdff0 (diff)
downloadCMake-f154475b65738444414312d7d5a255f3220d90c6.zip
CMake-f154475b65738444414312d7d5a255f3220d90c6.tar.gz
CMake-f154475b65738444414312d7d5a255f3220d90c6.tar.bz2
cmTarget: Refactor GetLocation API
When given a non-NULL configuration the GetLocation returned the location for the given configuration. When given a NULL configuration the GetLocation method returned a location with the build-system placeholder for the configuration name. Split the latter use case out into a separate GetLocationForBuild method and update call sites accordingly.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index ec74e05..41f84a6 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -331,10 +331,14 @@ public:
std::string GetCompilePDBDirectory(const char* config = 0) const;
/** Get the location of the target in the build tree for the given
- configuration. This location is suitable for use as the LOCATION
- target property. */
+ configuration. */
const char* GetLocation(const char* config) const;
+ /** Get the location of the target in the build tree with a placeholder
+ referencing the configuration in the native build system. This
+ location is suitable for use as the LOCATION target property. */
+ const char* GetLocationForBuild() const;
+
/** Get the target major and minor version numbers interpreted from
the VERSION property. Version 0 is returned if the property is
not set or cannot be parsed. */
@@ -643,9 +647,6 @@ private:
// Get the target base name.
std::string GetOutputName(const char* config, bool implib) const;
- const char* ImportedGetLocation(const char* config) const;
- const char* NormalGetLocation(const char* config) const;
-
std::string GetFullNameImported(const char* config, bool implib) const;
std::string ImportedGetFullPath(const char* config, bool implib) const;