Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: CMake doesn't find the SFML config module  (Read 2240 times)

0 Members and 1 Guest are viewing this topic.

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
CMake doesn't find the SFML config module
« on: March 14, 2014, 06:56:32 pm »
Hi, I try to compile a project which uses SFML on linux but it doesn't seems to work.

CMake give me the followings errors messages :

Code: [Select]
Found SFML . in /usr/SFML-2.1/include
CMake Error at src/odfaeg/Core/CMakeLists.txt:44 (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.cmake



configuring incomplete, errors occurred!

But, it work on window, when I add this lines in the CMakeList :
Code: [Select]
include(${PROJECT_SOURCE_DIR}/cmake/Modules/FindSFML.cmake)

It's very strange, the SFML dir is in usr/SFML-2.1.

It finds the SFML dir so but it doesn't find the FindSFML.cmake on my ubuntu...
« Last Edit: March 14, 2014, 06:59:23 pm by Lolilolight »

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Re: CMake doesn't find the SFML config module
« Reply #1 on: March 15, 2014, 06:23:36 pm »
I've found the cmake repository, it was in usr/share on ubuntu.

I had just to copy the findSFML Module into the cmake-2.8/Modules directory and now, it works.

I think I'll stay on linux, it's more quiet and there aren't annoying pub or virus, so, no waste of time.


 

anything