clean up cmake search process