Alternatively: right click layer > save as, specify in properties.
There are geoprocessing tools to do the same.
Sometimes the input data may not be suitable for setting a CRS.