-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove support for Maya releases older than 2018 #501
remove support for Maya releases older than 2018 #501
Conversation
We should only be specifying one variable for use as the package version for when find_package() is used with a version number. Since we were previously specifying two variables with MAYA_APP_VERSION appearing last, that was the one that ended up being used, so this change simply removes the unused declaration of MAYA_API_VERSION.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mattyjams thanks! This is much appreciated
@@ -91,7 +91,7 @@ if (BUILD_USDMAYA_SCHEMAS) | |||
include(cmake/jinja.cmake) | |||
endif() | |||
|
|||
find_package(Maya REQUIRED) | |||
find_package(Maya 2018 REQUIRED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mattyjams Great work and thanks for tackling this one. All the changes look good to me. just one minor thing:
You are now explicitly adding version number 2018
after the follow by REQUIRED keyword. What happens then here with 2019 or above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The requested version of "2018" will get passed into the FindMaya.cmake
module. At the bottom of that module, we specify that MAYA_APP_VERSION
is the version variable to use, so find_package_handle_standard_args()
will compare the requested version of "2018" to whatever it found ("2019", "2020", etc.). Since we don't specify EXACT
to find_package()
, the Maya module will deem the found version compatible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgmt! Thanks.
CMake will enforce that maya-usd be built with at least Maya 2018 (any API version of that release).
@murphyeoin @robthebloke: Just want to make sure this is cool with you, and that you're not still trying to support any Maya releases before 2018, since I included
plugin/al
stuff in this.