Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix usage of MAYA_LOCATION when building on osx #878

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions cmake/modules/FindMaya.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,19 @@
# License text for the above reference.)

if(APPLE)
# Note: according to official Autodesk sources (and how it sets up
# MAYA_LOCATION itself), MAYA_LOCATION should include Maya.app/Contents
# on MacOS - ie:
# /Applications/Autodesk/maya2019/Maya.app/Contents
# However, for legacy reasons, and for maximum compatibility, setting
# it to the installation root is also supported, ie:
# /Applications/Autodesk/maya2019

find_path(MAYA_BASE_DIR
include/maya/MFn.h
HINTS
"${MAYA_LOCATION}/../.."
"$ENV{MAYA_LOCATION}/../.."
"${MAYA_LOCATION}"
"$ENV{MAYA_LOCATION}"
"/Applications/Autodesk/maya2019"
Expand All @@ -47,6 +57,7 @@ if(APPLE)
"$ENV{MAYA_LOCATION}"
"${MAYA_BASE_DIR}"
PATH_SUFFIXES
MacOS/
Maya.app/Contents/MacOS/
DOC
"Maya's libraries path"
Expand Down