JoseTomasTocino / freegemas

Freegemas is an open source version of the well known Bejeweled, built in C++ using SDL2
GNU General Public License v2.0
61 stars 18 forks source link

OS X build instructions & CMake adjustments #1

Closed jlnr closed 9 years ago

jlnr commented 9 years ago

I've added installation instructions for OS X, and some CMake adjustments that hopefully won't hurt on other systems.

Specifically, OS X does not ship with libintl.h, and Homebrew does not install it into /usr/include/ by default, so the CMakeLists.txt needed some more elaborate finder magic. (The cleaner solution would be to find a sane FindLibIntl.cmake on the internet, but I didn't want to include any of them because I suck at licenses...)

OS X also uses clang instead of gcc, but the command line for C++11 support is the same, so this was an easy fix.

Tested on OS X Yosemite 10.10 and Ubuntu 15.04.

jlnr commented 9 years ago

The first commit should also fix a bug on Linux; running make twice would keep symlinking media into itself for me, which caused an error after the second or third time.