fix usage of MAYA_LOCATION when building on osx #878
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Change(s)
Formerly, FindMaya.cmake assumed that MAYA_LOCATION on osx was set to
the top level installation dir, ie:
However, official Autodesk sources indicate that MAYA_LOCATION should
include Maya.app/Contents, ie:
For backward compatibility (and maximum convenience), FindMaya.cmake
still supports pointing at the top-level installation dir, but pointing
inside of Maya.app/Contents is now checked first.
Formerly, if MAYA_LOCATION was set to:
...but a maya 2019 install existed, at:
...then MAYA_BASE_DIR would end up pointing at the 2019 install, but
MAYA_LOCATION would stay pointing at 2018. This would result in some
things pointing at 2018, and some pointing at 2019, which obviously
created build problems.
For reference on the Autodesk's standard usage of MAYA_LOCATION on osx,
see:
Maya.app/Contents/Resources/mayald in the base install:
/devkit/applications/Makefile in the devkit:
# NOTE: MAYA_LOCATION on Mac OS X points to Maya.app/Contents
You can also check the value that Maya itself sets MAYA_LOCATION to
from within maya when you launch the Maya.app by double clicking it.
Fixes Issue(s)