Merge topic 'cmFileMonitor-skip-empty-names'

7bad99b0 cmake-server: Do not try watching subdirectories with empty names
This commit is contained in:
Brad King
2017-01-12 10:20:21 -05:00
committed by CMake Topic Stage
+3
View File
@@ -334,6 +334,9 @@ void cmFileMonitor::MonitorPaths(const std::vector<std::string>& paths,
rootSegment)); // Can not be both filename and root part of the path!
const std::string& currentSegment = pathSegments[i];
if (currentSegment.empty()) {
continue;
}
cmIBaseWatcher* nextWatcher = currentWatcher->Find(currentSegment);
if (!nextWatcher) {