diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-09-06 21:02:23 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-09-19 19:36:13 (GMT) |
commit | 34c6e995f9ac1c62540b68dd50934c8c0be98b7f (patch) | |
tree | d68b3f9c23b61a112f41cf3f6a8f2338f5cf03cb /Source/cmGlobalNinjaGenerator.cxx | |
parent | 839c65bca032b80cfa7fe0de2ad35c2448421092 (diff) | |
download | CMake-34c6e995f9ac1c62540b68dd50934c8c0be98b7f.zip CMake-34c6e995f9ac1c62540b68dd50934c8c0be98b7f.tar.gz CMake-34c6e995f9ac1c62540b68dd50934c8c0be98b7f.tar.bz2 |
Convert: Avoid HOME_OUTPUT enum when converting to relative paths
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index 7e343c9..bd65366 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -760,8 +760,8 @@ std::string cmGlobalNinjaGenerator::ConvertToNinjaPath(const std::string& path) { cmLocalNinjaGenerator* ng = static_cast<cmLocalNinjaGenerator*>(this->LocalGenerators[0]); - std::string convPath = - ng->ConvertToRelativePath(path, cmOutputConverter::HOME_OUTPUT); + std::string convPath = ng->ConvertToRelativePath( + this->LocalGenerators[0]->GetState()->GetBinaryDirectory(), path); convPath = this->NinjaOutputPath(convPath); #ifdef _WIN32 std::replace(convPath.begin(), convPath.end(), '/', '\\'); |