SFML community forums

Help => General => Topic started by: giowuu on August 18, 2014, 10:27:11 pm

Title: Can't create 64-bit SFML applications
Post by: giowuu on August 18, 2014, 10:27:11 pm
I have wasted so many hours on this problem.
I have compiled SFML 64 bit myself using cmake and visual studio.
My own project also uses cmake and I have set SFML_ROOT to "C:/Program Files/SFML".
CMake CORRECTLY generates SFML_INCLUDE_DIR "C:/Program Files/SFML/include"

The problem is CMake generates library paths "C:\Program Files (x86)\SFML\lib\sfml-system-d.lib"

Where the **** does cmake get "C:\Program Files (x86)\SFML\" from? That directory does not exist.
I tried updating to cmake 3 but it didn't help. Is there someone else who is creating 64 bit applications with a 64 bit compiled version of SFML and manages to get this to work?
Title: Re: Can't create 64-bit SFML applications
Post by: Laurent on August 18, 2014, 10:35:01 pm
CMake will install SFML at ${CMAKE_INSTALL_PREFIX}. Set it to whatever you want before configuring, and it should be fine.