megamarc/Tilengine

Unable to build on MacOS

Opened this issue · 1 comments

I was only able to build on MacOS after removing the following lines from ./CMakeLists.txt and ./samples/CMakeLists.txt:

elseif (UNIX AND APPLE)
    link_libraries("framework")

It may be worth noting that, contrary to the docs, this works regardless of whether I use SDL2.framework (installed at /Library/Frameworks) or the homebrew version.

I'm submitting this as an issue rather than a pull request because I don't yet understand Tilengine well enough to:

  1. understand what purpose these lines serve
  2. know whether they're still required
  3. ensure removing them won't break something (I've tried a few of the samples; they seem to run fine)

Happy to make a PR if needed.

Hi!

These CMake support files were contributed by github user Aleksei @lxxxxl , I don't really know the exact inner working. However removing these lines shouldn't harm the rest of configurations, as it only affects MacOS. You can remove them and make a PR if you know the effect of doing it, as I can't validate it.

Thanks for your contributions!