summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-03-12 19:24:38 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2019-03-12 19:37:07 (GMT)
commit414332ff57650862face4b23872062c4b4e018ca (patch)
tree2e1dc188e782c8de753005afb87988a777fbd24b
parente58e38f2fbd31fd1527c19c2a33151a6c23ff22f (diff)
downloadCMake-414332ff57650862face4b23872062c4b4e018ca.zip
CMake-414332ff57650862face4b23872062c4b4e018ca.tar.gz
CMake-414332ff57650862face4b23872062c4b4e018ca.tar.bz2
cmake_ninja_dyndep: don't duplicate slashes
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 841587c..e443678 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -1997,7 +1997,7 @@ int cmcmd_cmake_ninja_dyndep(std::vector<std::string>::const_iterator argBeg,
std::string const dir_top_bld = tdi["dir-top-bld"].asString();
std::string const dir_top_src = tdi["dir-top-src"].asString();
std::string module_dir = tdi["module-dir"].asString();
- if (!module_dir.empty()) {
+ if (!module_dir.empty() && !cmHasLiteralSuffix(module_dir, "/")) {
module_dir += "/";
}
std::vector<std::string> linked_target_dirs;