0 Members and 2 Guests are viewing this topic.
CMake Error at src/SFML/CMakeLists.txt:22 (find_package): Could not find module FindSFML.cmake or a configuration file for package SFML. Adjust CMAKE_MODULE_PATH to find FindSFML.cmake or set SFML_DIR to the directory containing a CMake configuration file for SFML. The file will have one of the following names: SFMLConfig.cmake sfml-config.cmakeCMake Warning (dev) at cmake/Macros.cmake:87 (target_link_libraries): Link library type specifier "optimized" is followed by specifier "debug" instead of a library name. The first specifier will be ignored.Call Stack (most recent call first): src/SFML/System/CMakeLists.txt:24 (csfml_add_library)This warning is for project developers. Use -Wno-dev to suppress it.CMake Error at cmake/Macros.cmake:87 (target_link_libraries): The "debug" argument must be followed by a library.Call Stack (most recent call first): src/SFML/System/CMakeLists.txt:24 (csfml_add_library)
# If SFML is not installed in a standard path, you can use the SFMLDIR CMake variable# to tell CMake where SFML is.
make install
I don't like this CMake error message, I find it confusing for users who are not used to packages errors.In fact you can ignore the hint given by CMake, this "configuration file" thing is never used, you must instead look at the comments in FindSFML.cmake to know what to do.Quote from: "FindSFML.cmake"# If SFML is not installed in a standard path, you can use the SFMLDIR CMake variable# to tell CMake where SFML is.And make sure that FindSFML.cmake is installed into your CMake directory (this is done automatically if you installed SFML).