mirror of
https://github.com/SFML/SFML.git
synced 2025-01-19 07:45:13 +08:00
dfc9b83fe4
This is what it currently looks like when find_package(SFML) fails due to locating the incorrect library type: CMake Error at <path>/<to>/lib/cmake/SFML/SFMLConfig.cmake:182 (message): Requested SFML configuration (Shared) was not found Call Stack (most recent call first): CMakeLists.txt:7 (find_package) CMake Error at CMakeLists.txt:7 (find_package): Found package configuration file: <path>/<to>/lib/cmake/SFML/SFMLConfig.cmake but it set SFML_FOUND to FALSE so package "SFML" is considered to be NOT FOUND. After this change the "Requested SFML configuration" line is followed by either Set SFML_STATIC_LIBRARIES to ON for static libraries or Set SFML_STATIC_LIBRARIES to OFF for shared libraries depending on the value of SFML_STATIC_LIBRARIES. This should help clear up a common source of confusion when users build SFML from source. The library follows CMake convention of building static libraries by default but our config module assumes shared libraries by default so those who build SFML from source are prone to run into this error. |
||
---|---|---|
.. | ||
Modules | ||
CompilerWarnings.cmake | ||
Config.cmake | ||
Format.cmake | ||
Macros.cmake | ||
Mesa3D.cmake | ||
SFMLConfig.cmake.in | ||
Tidy.cmake |