We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3411

Summary: Install with cmake creates links to wrong files on OSX
Product: SDL Reporter: rhiakath.flanders
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: amaranth72, rhiakath.flanders
Version: 2.0.4   
Hardware: x86   
OS: Other   
Attachments: patch file to be applied to CMakeLists.txt to fix the issue

Description rhiakath.flanders 2016-08-22 14:57:07 UTC
Created attachment 2553 [details]
patch file to be applied to CMakeLists.txt to fix the issue

while building on OSX with CMAKE, the install step creates symlink from libSDL2-2.0.so to libSDL2.so, even though the former does not exist.

The culprit is here:

install(CODE "
      execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
      \"libSDL2-2.0.so\" \"libSDL2.so\")")
Comment 1 Alex Szpakowski 2016-08-22 22:13:14 UTC
The patched lines have had changes since 2.0.4's release. Can you verify that the problem still exists in the latest code from Mercurial, and make a new patch if so?
Comment 2 rhiakath.flanders 2016-08-23 10:22:08 UTC
Yes, it seems that the mercurial version works ok. Now I just have to see why it insists it needs X's header files on OSX, but that's another issue...
Comment 3 Sam Lantinga 2017-08-11 20:59:01 UTC
Fixed in Mercurial, thanks!