Closed e3dos closed 7 years ago
The error already tells you what the issue is. It couldn't find SDL2. So you need to set SDL2_PATH to tell CMake where to find SDL2.
Hi. The error you are reporting is not an error with cmake or the GWork project settings. As @eXpl0it3r mentions, the error is telling you that SDL2 cannot be found. This might be because you don't have it installed, or because there is no standard install directory on Windows, unlike UNIX. If you look in the FindSDL.cmake file you'll see a list of paths where cmake looks for SDL2. When you generate your project you could pass in SDL2_PATH=<my SDL2 install location>
. E.g.
cmake .. -G <project type> SDL2_PATH="c:\install"
Where c:\install
contains the SDL2 include and lib directories.
If you haven't used cmake before I'd suggest reading their docs. There are also plenty of tutorials you can find by Googling.
Closing as not a bug.
I tried using cmake, but it gives the following error:
how to proceed?