diff options
author | Brad King <brad.king@kitware.com> | 2014-03-08 12:55:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-08 18:05:36 (GMT) |
commit | f154475b65738444414312d7d5a255f3220d90c6 (patch) | |
tree | b5a619eb570bfd4be813af7283c58be727e52624 /Source/cmTarget.h | |
parent | cfc2cf9559eacbf45d04249ee1dd7f75bb0cdff0 (diff) | |
download | CMake-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.h | 11 |
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; |