SystemTools: CopyFileIfDifferent: Fix endless recursion
Issue: cmake/cmake#20347 (closed)
Reworked the change from !163 (merged) which was reverted in !165 (merged). This is now much more conservative and should not break existing behavior.
Topic-rename: SystemTools-CopyFileIfDifferent-recursion
Edited by Brad King