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/cmGeneratorTarget.cxx | |
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/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index a7b2efa..f7f6feb 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -742,7 +742,7 @@ bool cmTargetTraceDependencies::IsUtility(std::string const& dep) { // This is really only for compatibility so we do not need to // worry about configuration names and output names. - std::string tLocation = t->GetLocation(0); + std::string tLocation = t->GetLocationForBuild(); tLocation = cmSystemTools::GetFilenamePath(tLocation); std::string depLocation = cmSystemTools::GetFilenamePath(dep); depLocation = cmSystemTools::CollapseFullPath(depLocation.c_str()); |