Merge branch 'cmFileMonitor-skip-empty-names' into release

This commit is contained in:
Brad King 2017-01-11 13:51:38 -05:00
commit 0051989738
1 changed files with 3 additions and 0 deletions

View File

@ -331,6 +331,9 @@ void cmFileMonitor::MonitorPaths(const std::vector<std::string>& paths,
rootSegment)); // Can not be both filename and root part of the path! rootSegment)); // Can not be both filename and root part of the path!
const std::string& currentSegment = pathSegments[i]; const std::string& currentSegment = pathSegments[i];
if (currentSegment.empty()) {
continue;
}
cmIBaseWatcher* nextWatcher = currentWatcher->Find(currentSegment); cmIBaseWatcher* nextWatcher = currentWatcher->Find(currentSegment);
if (!nextWatcher) { if (!nextWatcher) {