summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-08-29 08:28:52 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-08-29 08:28:52 (GMT)
commit5e15f398860712930387b78e36a7ae5ab8a9b775 (patch)
treebbcb44979cfaf881cf452831424acaa4ce2339c7 /Source/cmGeneratorTarget.cxx
parentb6f6802b3d0dc1a9ab7beb62a17bd0651d87a64f (diff)
downloadCMake-5e15f398860712930387b78e36a7ae5ab8a9b775.zip
CMake-5e15f398860712930387b78e36a7ae5ab8a9b775.tar.gz
CMake-5e15f398860712930387b78e36a7ae5ab8a9b775.tar.bz2
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).
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 5ce0e6b..62ac263 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<std::string>::iterator li = result.begin();
+ li != result.end(); ++li)
+ {
+ cmSystemTools::ConvertToUnixSlashes(*li);
+ }
+
IncludeCacheType::value_type entry(config_upper, result);
iter = this->SystemIncludesCache.insert(entry).first;
}