Pressure only affects gaseous system. This is because the force of cohesion between the gaseous molecules are negligible(i.e very small) and their molecules are far apart hence the gaseous molecules are easily compressed. But for solid, the Particles are very close and tightly packed together with a strong force of cohesion hence pressure has no effect on it. This account for the definite shape and definite volume of solid