Skip to content
  • Brad King's avatar
    SystemTools: Implement IsSubDirectory without loop · beef6819
    Brad King authored
    The loop condition "while ( path.size() > dir.size() )" assumes that
    eventually path will be no longer than dir but "c:/" will always be
    longer than "/" and loop forever.  Simplify the implementation to avoid
    the loop and the assumption.
    
    Change-Id: I5613c7554ebd05b12cfe4882ac3bec4ecaa6e0ae
    CMake-Issue: 14283
    beef6819