cmake script recheck only if test macro undefined