Skip to content

Don't try watching empty subdirectories

Aleix requested to merge apol/cmake:cmRealDirectoryWatcher-assert into master

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)

Merge request reports