Skip to content
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

Conversation

mattyjams
Copy link
Contributor

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.

mattyjams added 8 commits May 18, 2020 14:22
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.
Copy link
Contributor

@murphyeoin murphyeoin left a 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

@kxl-adsk kxl-adsk requested a review from HamedSabri-adsk May 19, 2020 12:43
@kxl-adsk kxl-adsk added the build Related to building maya-usd repository label May 19, 2020
@@ -91,7 +91,7 @@ if (BUILD_USDMAYA_SCHEMAS)
include(cmake/jinja.cmake)
endif()

find_package(Maya REQUIRED)
find_package(Maya 2018 REQUIRED)
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@HamedSabri-adsk HamedSabri-adsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgmt! Thanks.

@kxl-adsk kxl-adsk merged commit ddefcd4 into Autodesk:dev May 20, 2020
@mattyjams mattyjams deleted the pr/remove_support_for_Maya_releases_older_than_2018 branch May 20, 2020 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to building maya-usd repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants