diff options
author | Nicolas Despres <nicolas.despres@gmail.com> | 2016-05-13 23:18:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-17 13:34:10 (GMT) |
commit | 7c26a6a269b0c12ecdf7605183d9fa26ad2b91eb (patch) | |
tree | cf8a0deb3017eda613bde6085f134bff721e1354 /Source | |
parent | ac3cdd9af287e653d53b18c432f21a919b102158 (diff) | |
download | CMake-7c26a6a269b0c12ecdf7605183d9fa26ad2b91eb.zip CMake-7c26a6a269b0c12ecdf7605183d9fa26ad2b91eb.tar.gz CMake-7c26a6a269b0c12ecdf7605183d9fa26ad2b91eb.tar.bz2 |
Ninja: Fix path to soname-d target file
In WriteLinkStatement we convert all target output paths to ninja-style
paths. Add a missing conversion for the `soname` file name.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmNinjaNormalTargetGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx index 831d44b..8d7a892 100644 --- a/Source/cmNinjaNormalTargetGenerator.cxx +++ b/Source/cmNinjaNormalTargetGenerator.cxx @@ -652,7 +652,8 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement() cmNinjaDeps(1, targetOutputReal), emptyDeps, emptyDeps, symlinkVars); } else { cmNinjaDeps symlinks; - const std::string soName = this->GetTargetFilePath(this->TargetNameSO); + std::string const soName = + this->ConvertToNinjaPath(this->GetTargetFilePath(this->TargetNameSO)); // If one link has to be created. if (targetOutputReal == soName || targetOutput == soName) { symlinkVars["SONAME"] = soName; |