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 - Install with cmake creates links to wrong files on OSX
Summary: Install with cmake creates links to wrong files on OSX
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 2.0.4
Hardware: x86 Other
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-22 14:57 UTC by rhiakath.flanders
Modified: 2017-08-11 20:59 UTC (History)
2 users (show)

See Also:


Attachments
patch file to be applied to CMakeLists.txt to fix the issue (656 bytes, patch)
2016-08-22 14:57 UTC, rhiakath.flanders
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!