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 4412

Summary: Misplaced and mistyped WORKING_DIR parameter in install(execute_process()) in CMakeLists.txt
Product: SDL Reporter: Serhii Charykov <laammaar>
Component: buildAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus
Version: don't knowKeywords: target-2.0.10
Hardware: x86_64   
OS: Linux   
Attachments: Patch

Description Serhii Charykov 2018-12-03 18:28:22 UTC
Created attachment 3523 [details]
Patch

As far as I can tell there is a misplaced closing ")" in file CMakeLists.txt near line 1860:
 install(CODE "
   execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
     \"lib${SONAME}${SOPOSTFIX}${SOEXT}\" \"libSDL2${SOPOSTFIX}${SOEXT}\")"
     WORKING_DIR "${SDL2_BINARY_DIR}")

According to:

https://cmake.org/cmake/help/v3.0/command/execute_process.html
https://cmake.org/cmake/help/v3.0/command/install.html

WORKING_DIR exists only as parameter in execute_process command.

And in documentation it is "WORKING_DIRECTORY".
Comment 1 Ryan C. Gordon 2019-05-18 18:48:54 UTC
Tagging a bunch of bugs with "target-2.0.10" so we have a clear list of things to address before a 2.0.10 release.

Please note that "addressing" one of these bugs might mean deciding to defer on it until after 2.0.10, or resolving it as WONTFIX, etc. This is just here to tell us we should look at it carefully, and soon.

If you have new information or feedback on this issue, this is a good time to add it to the conversation, as we're likely to be paying attention to this specific report in the next few days/weeks.

Thanks!

--ryan.
Comment 2 Sam Lantinga 2019-05-19 18:54:18 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/b7320ef610b5