Sales of leased land capital gain applicable for landlord or tenant

Sir,
It assessess (Mr.A) own vacant land leased to another person tenant (Mr .B) after tenant leased vacant land construction building and Mr A (landlord) sales of vacant land along with tenant construction building to another person
Question:
Above transaction capital gains tax applicable on landlord or tenant for it purpose