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 4129

Summary: Adding SDL using FetchContent results in copy errors with the .so library
Product: SDL Reporter: samaursa <saadrustam>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.8   
Hardware: x86_64   
OS: Linux   
Attachments: Fix for `install` on `Linux`.
Correct patch, please ignore last attachment

Description samaursa 2018-04-08 14:12:18 UTC
The install commands work fine when the `SDL` is built and installed independently or `ExternalProject_Add` is used. 

However, when using `FetchContent` (as of CMake 3.11) the incorrect build directory is chosen causing an error when creating the symlink and copying the file.
Comment 1 samaursa 2018-04-08 14:13:29 UTC
Created attachment 3217 [details]
Fix for `install` on `Linux`.
Comment 2 samaursa 2018-04-08 14:17:49 UTC
Created attachment 3218 [details]
Correct patch, please ignore last attachment
Comment 3 Sam Lantinga 2018-04-10 15:04:19 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/bfb936894a9d