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?

https://lazyfoo.net/tutorials/SDL/01_hello_SDL/windows/msvc2019/index.php