cmake directory fix