Fix cmake policy warning.