summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorNicolas Despres <nicolas.despres@gmail.com>2016-05-13 23:18:20 (GMT)
committerBrad King <brad.king@kitware.com>2016-05-17 13:34:09 (GMT)
commitd4381cb15df3e81b78b6d8d9e7d9b727a616985d (patch)
treef96ee1b65d1acbac4feffb8cca5edcedbe556742 /Source/cmLocalNinjaGenerator.cxx
parent0397c92a15e505021d75eb0a156a312b024eb85e (diff)
downloadCMake-d4381cb15df3e81b78b6d8d9e7d9b727a616985d.zip
CMake-d4381cb15df3e81b78b6d8d9e7d9b727a616985d.tar.gz
CMake-d4381cb15df3e81b78b6d8d9e7d9b727a616985d.tar.bz2
Ninja: Convert link library file names like all other output paths
All paths generated on Ninja-invoked command lines should be passed through ConvertToNinjaPath. Fix ConvertToLinkReference to call this instead of partially duplicating its implementation.
Diffstat (limited to 'Source/cmLocalNinjaGenerator.cxx')
-rw-r--r--Source/cmLocalNinjaGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx
index 671d8a0..69f8fe5 100644
--- a/Source/cmLocalNinjaGenerator.cxx
+++ b/Source/cmLocalNinjaGenerator.cxx
@@ -123,7 +123,8 @@ cmGlobalNinjaGenerator* cmLocalNinjaGenerator::GetGlobalNinjaGenerator()
std::string cmLocalNinjaGenerator::ConvertToLinkReference(
std::string const& lib, OutputFormat format)
{
- return this->Convert(lib, HOME_OUTPUT, format);
+ std::string path = this->GetGlobalNinjaGenerator()->ConvertToNinjaPath(lib);
+ return this->ConvertToOutputFormat(path, format);
}
std::string cmLocalNinjaGenerator::ConvertToIncludeReference(