• Aleix's avatar
    cmake-server: Do not try watching subdirectories with empty names · 7bad99b0
    Aleix authored
    `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.  Teach cmFileMonitor to skip these
    empty segments.
    
    Closes: #16531
    7bad99b0
cmFileMonitor.cxx 9.54 KB