Investors & landlords

Is it necessary to separate land and house part of the sale? Where does say that on IRS code? Can I lump it all on form 4797 part III?