changed some cmake rules