Use PATH instead of DIRECTORY for older cmakes.