diff options
author | Brad King <brad.king@kitware.com> | 2022-02-28 15:16:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-02-28 15:25:18 (GMT) |
commit | 43416c48ed6bb7d3b8063ac4ea1ba02a4aab828e (patch) | |
tree | eff805381983587d9775f726ff40d9caba37aeea /Source/cmOutputConverter.cxx | |
parent | de766bc7e0f4a856abc712e64e4248e966ced37f (diff) | |
download | CMake-43416c48ed6bb7d3b8063ac4ea1ba02a4aab828e.zip CMake-43416c48ed6bb7d3b8063ac4ea1ba02a4aab828e.tar.gz CMake-43416c48ed6bb7d3b8063ac4ea1ba02a4aab828e.tar.bz2 |
cmOutputConverter: Always set relative path top source and binary together
Refactor to set both at once so we have a single place in the code that
knows both have been set.
Diffstat (limited to 'Source/cmOutputConverter.cxx')
-rw-r--r-- | Source/cmOutputConverter.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx index b143170..3d61743 100644 --- a/Source/cmOutputConverter.cxx +++ b/Source/cmOutputConverter.cxx @@ -79,14 +79,11 @@ std::string const& cmOutputConverter::GetRelativePathTopBinary() const return this->RelativePathTopBinary; } -void cmOutputConverter::SetRelativePathTopSource(std::string const& top) +void cmOutputConverter::SetRelativePathTop(std::string const& topSource, + std::string const& topBinary) { - this->RelativePathTopSource = top; -} - -void cmOutputConverter::SetRelativePathTopBinary(std::string const& top) -{ - this->RelativePathTopBinary = top; + this->RelativePathTopSource = topSource; + this->RelativePathTopBinary = topBinary; } std::string cmOutputConverter::MaybeRelativeTo( |