Compiler version different than linked version

I downloaded the latest SDL2 for visual studio and copied over the old SDL2 files. However, the message I get is:
INFO: We compiled against SDL version 2.0.12 …
INFO: But we are linking against SDL version 2.24.0.

how can I make my visual studio compiler use the latest version?