Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug #32349239 WRONG VERSION REPORTED FROM MYSQLD WHEN BUILDING ON MAC…
…OS 11 Version information printed by MySQL executables includes the value of the cmake variable SYSTEM_TYPE, which is based on the cmake variable PLATFORM. On macOS the default value for PLATFORM is based on 'uname -r' with some arithmetic to map from unix version, to macOS version. This arithmetic did not work at all for macOS 11, and executables would report something like: "Ver 8.0.24 for osx10.16 on x86_64" This patch replaces the use of 'uname -r' with the results from 'sw_vers'. We also remove "osx" from the default PLATFORM name, and use "macos" instead. With this, version information will be: Ver 8.0.24 for macos11.1 on x86_64 or Ver 8.0.24 for macos10.15 on x86_64 Also set CMAKE_OSX_DEPLOYMENT_TARGET explicitly, unless it is defined on the cmake command line. Change-Id: I97984bdaa09d025422709fc15569e12f3ee2ff11
- Loading branch information