Fixed cmake rules