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

clean up part1 #369

Conversation

HamedSabri-adsk
Copy link
Contributor

I was planning to bring over this PR a bit later but since there has a been a lot of confusion around this I decided to do it now to clarify things.

What is the point of this PR?

targets linking against mayaUsd library don't need to do anything extra other than declaring their dependence on mayaUsd. mayaUsd target now declares ${CMAKE_BINARY_DIR}/include publicly.

This change is based on earlier concern from @mattyjams and it makes sense to me. I hope it makes things more clear.

e.g
before:

target_include_directories(${potato}   
  PRIVATE
      ${CMAKE_BINARY_DIR}/include

target_link_libraries(${potato}   
  PRIVATE
      mayaUsd

after:

target_link_libraries(${potato}   
  PRIVATE
      mayaUsd

…ra other than declaring their dependence on mayaUsd.

mayaUsd target now declares ${CMAKE_BINARY_DIR}/include publicly.
Copy link
Contributor

@mattyjams mattyjams left a comment

Choose a reason for hiding this comment

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

Sweet! Yeah, looks great to me! Thanks @HamedSabri-adsk! And thanks also for the focused PR! Super easy to review. :)

Copy link
Contributor

@pmolodo pmolodo left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@HamedSabri-adsk
Copy link
Contributor Author

Thanks both @mattyjams @elrond79 . Glad it works.

@HamedSabri-adsk HamedSabri-adsk merged commit 69727dc into sabrih/MAYA-103365/cleanup_mtoh_hdmaya_cmake Mar 24, 2020
@HamedSabri-adsk HamedSabri-adsk deleted the sabrih/MAYA-103365/clean_up_pr1 branch March 24, 2020 01:15
JGamache-autodesk pushed a commit that referenced this pull request Mar 28, 2023
See if MayaUSD can work without cot-psl
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