Fix cmake rules