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 - Adding SDL using FetchContent results in copy errors with the .so library
Summary: Adding SDL using FetchContent results in copy errors with the .so library
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 2.0.8
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-08 14:12 UTC by samaursa
Modified: 2018-04-10 15:04 UTC (History)
0 users

See Also:


Attachments
Fix for `install` on `Linux`. (62.38 KB, patch)
2018-04-08 14:13 UTC, samaursa
Details | Diff
Correct patch, please ignore last attachment (2.35 KB, patch)
2018-04-08 14:17 UTC, samaursa
Details | Diff

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