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

build: Don't change CMAKE_XXX_OUTPUT_DIRECTORY when built as subdir #4417

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

touraill-adobe
Copy link

When building OIIO as a subdirectory of a super-project (with add_subdirectory), it is better to honor the output directories specified by the parent project.

In our project, it was causing issues because OIIO libs were ending in a different folder from USD plugins, which thereby failed to load correctly in the build tree.

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable.
  • I have ensured that the change is tested somewhere in the testsuite
    (adding new test cases if necessary).
  • If I added or modified a C++ API call, I have also amended the
    corresponding Python bindings (and if altering ImageBufAlgo functions, also
    exposed the new functionality as oiiotool options).
  • My code follows the prevailing code style of this project. If I haven't
    already run clang-format before submitting, I definitely will look at the CI
    test that runs clang-format and fix anything that it highlights as being
    nonconforming.

Copy link

linux-foundation-easycla bot commented Sep 10, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: touraill-adobe / name: Luc Touraille (ec68dac)

Copy link
Collaborator

@lgritz lgritz left a comment

Choose a reason for hiding this comment

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

Looks reasonable

@lgritz
Copy link
Collaborator

lgritz commented Sep 11, 2024

Hi, before we merge, we need a CLA on file from you, and also the commit needs to be "signed" to indicate acceptance of the required DCO. You can do the latter simply by

git commit --amend -s
git push origin <branchname> --force

When building OIIO as a subdirectory of a super-project (with
`add_subdirectory`), it is better to honor the output directories
specified by the parent project.

In our project, it was causing issues because OIIO libs were ending in
a different folder from USD plugins, which thereby failed to load
correctly in the build tree.

Signed-off-by: Luc Touraille <touraill@adobe.com>
@touraill-adobe
Copy link
Author

Hi, before we merge, we need a CLA on file from you, and also the commit needs to be "signed" to indicate acceptance of the required DCO. You can do the latter simply by

git commit --amend -s
git push origin <branchname> --force

Yes I'm waiting for the CLA to be signed by my company :)

Sorry about the missing sign-off, I missed the requirement when reading the guidelines, I updated the commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants