Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

CMake: SFMLConfig.cmake missing #9

Open
Lecrapouille opened this issue Mar 15, 2018 · 0 comments
Open

CMake: SFMLConfig.cmake missing #9

Lecrapouille opened this issue Mar 15, 2018 · 0 comments

Comments

@Lecrapouille
Copy link

Lecrapouille commented Mar 15, 2018

Hi ! I'm just a noob with CMake so do not dispute me. I did not understand the instruction line in the README: Set CMAKE_MODULE_PATH to SFML's directory SFML/cmake/Modules or install the FindSFML.cmake in your shared CMake directory

So I got the error: Could not find a package configuration file provided by "SFML" (requested version 2) with any of the following names: SFMLConfig.cmake sfml-config.cmake

To fix it:

  • I copied the SFML/cmake/Modules/FindSFML.cmake on the root of citybuilder (I downloaded SFML from github).
  • I added the following line set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/" ${CMAKE_MODULE_PATH}) at line 42 of the CMakeLists.txt

Hope this will help somebody.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant