CMake SFML Notes:

Note: If you want to compile SFML with CMake, you need
to download the source directly from the GIT repo. I downloaded the source
from the SFML website. The option that said “ALL” and said it was source…

But the error CMake gave me suggests it was not the full source.
Topic: unknown cmake command sfml_add_library w/ vs 2015 & cmake 3.3.0  (Read 112 times)
http://en.sfml-dev.org/forums/index.php?topic=18668.0

I installed GIT, and cloned the SFML repo.
And used that repo as my source directory.
Worked!
http://www.sfml-dev.org/tutorials/2.1/compile-with-cmake.php

Also, if you get the error:
The source “C:/DEV/REPO/SFML/CMakeLists.txt”
does not match the source
“C:/DEV/PROG/CMAKE/SOURCE_CODE/SFML-2.3.1-sources/SFML-2.3.1/src/SFML/CMakeLists.txt”
used to generate cache.
Re-run cmake with a different source directory.

Possible Solution:
“rm – rf”
http://www.cmake.org/pipermail/cmake/2012-August/051543.html

SOLUTION: Delete CMakeCache.txt
Delete CMakeCache.txt in the folder you executing cmake.
http://twnin.blogspot.com/2012/10/cmake-re-run-cmake-with-different.html

Another note: You don’t invoke MinGW with “MinGW” on the command line.
It is invoked: “g++”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s