cmake script fixed