Fix cmake code