fixed cmake variable matching

How is cmake formed