DOCGroup / ACE_TAO

ACE and TAO
https://www.dre.vanderbilt.edu/~schmidt/TAO.html
701 stars 381 forks source link

Fix detection of MacOSX SDKs older than 10.10 #2260

Closed ryandesign closed 3 months ago

ryandesign commented 3 months ago

Building ACE 8.0.0 on Mac OS X 10.6 fails:

../ace/config-macosx.h:32:2: error: Cannot detect MacOSX version
#error Cannot detect MacOSX version
 ^

because you are using the wrong __MAC_OS_X_VERSION_MAX_ALLOWED values for SDK versions earlier than 10.10. This PR fixes it. It also clarifies the error message: __MAC_OS_X_VERSION_MAX_ALLOWED represents the version of the SDK, not the version of macOS currently being used on the build machine nor the minimum version of macOS that will be required to run the compiled program. (The latter would be the deployment target.)