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

Author Topic: SFML Linking Cmake Help  (Read 751 times)

0 Members and 1 Guest are viewing this topic.

zfot

  • Newbie
  • *
  • Posts: 2
    • View Profile
SFML Linking Cmake Help
« on: April 17, 2018, 04:34:16 pm »
Hi there,

To begin with i am gonna say that it's not my first time using SFML.
But, Today i need to Compile my project on windows ..
Wich give me a lot of issue.
I've read The doc and many forums but no one gimme a solution.

So my current Problem is That the FindSFML module Successfully find all the SFML lib but when i use
the target_link_libraries(${PROJECT_NAME} ${SFML_LIBRARIES}

I Still Have undefines References to SFML functions



So i've tried to copy SFML dlls and link them by hand
And It works !!
But the Solution don't suit me..
So i want to know, what did i make wrong ?

The SFML_ROOT environment variable is set (I think Correctly to "~/Install/SFML-2.4.2/")
I've also selected the Dynamic Linking by Setting SFML_STATIC_LIBRARIES to false.





Btw Sorry for my not Really good English, i've tried my best.
Thanks for all

zfot.
« Last Edit: April 18, 2018, 10:16:48 am by zfot »

 

anything