Open minsc78 opened 3 years ago
Create a file "FindSFML.cmake" in your Cmake Module directory, for example: "E:\Program Files\CMake\share\cmake-3.21\Modules" and then fill these, I think this will work in the future. Seems that Cmake removed the SFML.cmake in the newer version.
...
include_directories(${SFML_INCLUDE_DIR})
link_directories(${SFML_LIB_DIR})
My system passed cmake's checks, but it did not compile so I had to get the latest versions of cmake, gcc, g++. Then even though I had installed SFML (sudo apt install libsfml-dev) I got this error message:
So I had to download the latest version of SFML (https://www.sfml-dev.org/download/sfml/2.5.1/) and add this to CMakeLists.txt to make it work:
Why didn't it find SFML automatically on the standard installation directories?