improving cmake find scripts