No action to recover damages for any injury to real or personal property, for personal injury or death arising out of any deficiency in the design, planning, supervision, inspection, and observation of construction, or construction, of an improvement to real property, nor any action for contribution or indemnity for damages sustained on account of such injury or death, may be brought against any person performing or furnishing the design, planning, supervision, inspection, and observation of construction, or construction, of such an improvement more than ten years after substantial completion of such construction. The date of substantial completion shall be determined by the date when construction is sufficiently completed so that the owner or his representative can occupy or use the improvement for the use it was intended.
SDCL 15-2A-3