Revert changes in cmake