As the image formed is real, therefore, the lens in use is a convex lens. The distance of the real image formed by a convex lens from the lens decreases as the object distance from the lens increases. As the object distance becomes infinity, the real image is formed on the focus.
Hence, the screen has to be moved towards the lens to obtain the sharp image of the building.