You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The root issue are the target properties set on the SDL2 target for the APPLE environment. MACOSX_RPATH 1 is the only property set, and without VERSION, SOVERSION, or OUTPUT_NAME, the -2.0 suffix isn't added to the generated dylib.
This patch file also modifies the proceeding create_symlink call that expects to target the generated .dylib in a couple ways;
Use CMake's CMAKE_SHARED_LIBRARY_SUFFIX constant to choose between .so, .dylib, etc., rather than guessing based on platform.
The SDL target's OUTPUT_NAME is used in place of a hard-coded string. This doesn't immediately affect anything, but should the target's output name change in the future, the create_symlink call won't need to be updated.
Add the SOPOSTFIX ("d" for debug builds, "" for everything else) to the symlink's name to keep the symlink for debug builds distinct from the symlink for release builds.
This is a possible duplicate of or corollary to 3713.
On 2018-09-23 23:39:54 +0000, Drew Pirrone-Brusse wrote:
Created attachment 3309
The same patch as previously, built from release-2.0.8
The first patch I posted was cut from what was then master. I had cause to re-build the patch off of release-2.0.8, and decided that might be worth recording here.
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: HG 2.1
Reported for operating system, platform: Mac OS X (All), x86_64
Comments on the original bug report:
On 2018-08-18 21:47:30 +0000, Drew Pirrone-Brusse wrote:
On 2018-09-23 23:39:54 +0000, Drew Pirrone-Brusse wrote:
On 2018-09-24 15:45:22 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: