Don't try watching empty subdirectories
cmsys::SystemTools::SplitPath will return empty segments on paths where there's duplicaded consequent slashes (e.g. /home/dir/my//stuff). This makes the cmFileWatcher choke. This patch modifies the cmFileMonitor so that it will skip these empty segments.
Solves CMake issue #16531 (closed)