So when loading the Cmake for SDL2, I got this error.
Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
Problem is, I have put everything in the correct location:
- The Path in the FindSDL2.Cmake file:
- The SDL2 Library
So I am 100% sure that this is not because of me writing some wrong location. To prove it further, I have added the PATH_SUFFIXES to the SDL2_INCLUDE_DIR:
After doing so, it only becomes:
So, yeah, to add for information, if I change the SDL2 files to some other folders, it sometimes work, and sometimes doesn't. I am 200% sure this is not my fault of setting the wrong directory.
This stupid error has been torturing me for a week now.
Please, any idea on how to fix this :<