libSDL2pp / libSDL2pp

C++ bindings/wrapper for SDL2
https://sdl2pp.amdmi3.ru
Other
564 stars 89 forks source link

Error when using Cmake on Windows #129

Closed ghost closed 4 years ago

ghost commented 4 years ago

Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2MAIN_LIBRARY)

There appears to be no documentation for these required environment variables. A google search for SDL2_LIBRARY shows some possible solutions, but there is no information at all on how to fulfill the requirements of SDL2MAIN_LIBRARY.

AMDmi3 commented 4 years ago

You need to point cmake to where your SDL libraries and includes are located with CMAKE_PREFIX_PATH. See appveyor script for example.