Bug #91103 Need to specify BYPRODUCTS on copy_openssl_dlls for Ninja on MacOS
Submitted: 1 Jun 2018 11:13 Modified: 11 Jun 2018 13:44
Reporter: Dyre Tjeldvoll Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.13 OS:Any
Assigned to: CPU Architecture:Any

[1 Jun 2018 11:13] Dyre Tjeldvoll
Description:
When using Ninja as the generator on MacOS, the build fails unless one manually invokes 
ninja copy_openssl_dlls
to copy the ssl dylibs into library_output_directory.

How to repeat:
On Mac Sierra:
cmake -G Ninja ...
ninja

Suggested fix:
Add BYPRODUCTS argument to ADD_CUSTOM_TARGET(copy_openssl_dlls ... to tell Ninja which files are "produced" by this target.
[8 Jun 2018 6:12] Tor Didriksen
Posted by developer:
 
The cmake version bump is necessary because
INCLUDE_DIRECTORIES(SYSTEM ...) wasn't handled properly byt the cmake Xcode generator.

https://cmake.org/Bug/bug_relationship_graph.php?bug_id=15687&graph=relation
https://gitlab.kitware.com/cmake/cmake/issues/16795
https://gitlab.kitware.com/cmake/cmake/merge_requests/726
[11 Jun 2018 13:44] Paul DuBois
Posted by developer:
 
Fixed in 8.0.13.

Internal issue. No changelog entry needed.