How can I choose to link statically or dynamically?

Is there any way I can canfigure CMake so it links SDL2 statically?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information