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

Fix missing ARCH_CONSTRUCTOR code with VS2019 #937

Merged
merged 2 commits into from
Nov 21, 2020

Conversation

JGamache-autodesk
Copy link
Collaborator

@JGamache-autodesk JGamache-autodesk added the build Related to building maya-usd repository label Nov 20, 2020
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.

Excellent find! Thank you.

else()
set(MSVC_FLAGS "${MSVC_FLAGS} /Zc:inline")
endif()

Copy link
Contributor

Choose a reason for hiding this comment

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

Nit-pick: You could also use regular expression to have you if/else logic in one line and keep it inside the MSVC_FLAGS list.

$<IF:$<VERSION_GREATER_EQUAL:${MSVC_VERSION},1920>,/Zc:inline-,/Zc:inline>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That is a better syntax indeed. Thanks!

@kxl-adsk kxl-adsk merged commit ca1a211 into dev Nov 21, 2020
@kxl-adsk kxl-adsk deleted the t_gamaj/fix_vs_2019_build branch November 21, 2020 03:08
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