You are selling property and then, later, paying cash to your ex-spouse. If you transferred a property instead then it could be exempt from both CGT and stamp duty.
If the agreement was to sell and then pay out the spouse I think the owner of the land will be up for CGT - or actually income tax probably.
If you transferred a block to the spouse the he or she would have inherited it pregnant with tax.