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

Author Topic: Issue locating SFML libraries on Windows  (Read 1113 times)

0 Members and 1 Guest are viewing this topic.

jackcmedia

  • Newbie
  • *
  • Posts: 5
    • View Profile
Issue locating SFML libraries on Windows
« on: October 18, 2015, 02:39:47 pm »
Hi,

I'm trying to compile some examples using the latest SFML release on Windows with the FindSFML.cmake module contained within. Problem is, I can't locate the libraries anymore.

I have the SFML_ROOT environment variable set to C:/C++ Libs/sfml 2.3.2/, yet the includes and libs can't be found, whereas setting the CMake variable SFML_ROOT to the aforementioned path results in the libraries being found correctly.

On a hunch, I displayed the values of both ${SFML_ROOT} and $ENV{SFML_ROOT}, but they are different (the environment variable one is using backslashes, instead of forward slashes). Issue on FindSFML.cmake or CMake itself?

- SFML 2.3.2 x86
- MinGW 4.9.2 x86
- cMake 3.0.2


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Issue locating SFML libraries on Windows
« Reply #1 on: October 18, 2015, 04:16:35 pm »
Use the CMake variable.
You seem to be the second person trying to use the environment variable in the past 2days. Is there some unofficial tutorial making its round?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything