Sale of second home in a different state

Sold a second home in a different state than my primary home.  Do I need to file capital gains in the state that I sold the property in?