From 5e15f398860712930387b78e36a7ae5ab8a9b775 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 29 Aug 2013 10:28:52 +0200 Subject: [PATCH] Normalize system directories from the interface target property The input dir being tested is normalized, so ensure that the entries in the vector are normalized too (eg no trailing slash). --- Source/cmGeneratorTarget.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 5ce0e6be1..62ac2638d 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -80,6 +80,12 @@ bool cmGeneratorTarget::IsSystemIncludeDirectory(const char *dir, config, false, this->Target, &dagChecker), result); } + for(std::vector::iterator li = result.begin(); + li != result.end(); ++li) + { + cmSystemTools::ConvertToUnixSlashes(*li); + } + IncludeCacheType::value_type entry(config_upper, result); iter = this->SystemIncludesCache.insert(entry).first; }