-
Notifications
You must be signed in to change notification settings - Fork 597
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
cmake: Add library dependencies in Config.cmake.in when building static libs #3552
Merged
lgritz
merged 1 commit into
AcademySoftwareFoundation:master
from
p12tic:cmake-fix-dependencies-for-static-libraries
Sep 14, 2022
Merged
cmake: Add library dependencies in Config.cmake.in when building static libs #3552
lgritz
merged 1 commit into
AcademySoftwareFoundation:master
from
p12tic:cmake-fix-dependencies-for-static-libraries
Sep 14, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p12tic
changed the title
cmake: Add library dependencies in Config.cmake.in when building static
cmake: Add library dependencies in Config.cmake.in when building static libs
Sep 13, 2022
This fixes builds in projects that compile OpenImageIO as static libraries and don't themselves depend on the image libraries used by OpenImageIO such as PNG, JPEG or TIFF. When OpenImageIO is built as a static library its targets have e.g. PNG::PNG among INTERFACE_LINK_LIBRARIES. If the including project does not itself depend on PNG, the following error would be observed: Target "<...>" links to target "PNG::PNG" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
p12tic
force-pushed
the
cmake-fix-dependencies-for-static-libraries
branch
from
September 13, 2022 22:04
c310fe5
to
b7ced07
Compare
lgritz
approved these changes
Sep 14, 2022
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.
LGTM, thanks for the fix.
lgritz
pushed a commit
to lgritz/OpenImageIO
that referenced
this pull request
Sep 14, 2022
…ic (AcademySoftwareFoundation#3552) This fixes builds in projects that compile OpenImageIO as static libraries and don't themselves depend on the image libraries used by OpenImageIO such as PNG, JPEG or TIFF. When OpenImageIO is built as a static library its targets have e.g. PNG::PNG among INTERFACE_LINK_LIBRARIES. If the including project does not itself depend on PNG, the following error would be observed: Target "<...>" links to target "PNG::PNG" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
lgritz
pushed a commit
to lgritz/OpenImageIO
that referenced
this pull request
Sep 18, 2022
…ic (AcademySoftwareFoundation#3552) This fixes builds in projects that compile OpenImageIO as static libraries and don't themselves depend on the image libraries used by OpenImageIO such as PNG, JPEG or TIFF. When OpenImageIO is built as a static library its targets have e.g. PNG::PNG among INTERFACE_LINK_LIBRARIES. If the including project does not itself depend on PNG, the following error would be observed: Target "<...>" links to target "PNG::PNG" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
lgritz
added a commit
to lgritz/OpenImageIO
that referenced
this pull request
Sep 23, 2022
Changes since RC1: - ImageCache/TextureSystem both have added a `getattributetype()` method, which retrieves just the type of a named attribute. AcademySoftwareFoundation#3559 (2.4.4.0) NOTE: THIS IS AN ABI BREAKING CHANGE - Python: Fix the ability to `getattribute()` of int64 and uint64 metadata or attributes. AcademySoftwareFoundation#3555 (2.4.4.0) - Build: Improvements to the generated cmake config files when building static libraries. AcademySoftwareFoundation#3552 AcademySoftwareFoundation#3557 (2.4.4.0) - Support for gcc 12.1. AcademySoftwareFoundation#3480 (2.4.2.1) AcademySoftwareFoundation#3551 (2.4.4.0) - Support building with clang 15.0. AcademySoftwareFoundation#3563 (2.4.4.0) - Fix cross-compiling on Android failing due to `-latomic` check. AcademySoftwareFoundation#3560 (2.4.4.0) - Fix building on iOS. AcademySoftwareFoundation#3562 (2.4.4.0)
lgritz
added a commit
to lgritz/OpenImageIO
that referenced
this pull request
Sep 23, 2022
Changes since RC1: - ImageCache/TextureSystem both have added a `getattributetype()` method, which retrieves just the type of a named attribute. AcademySoftwareFoundation#3559 (2.4.4.0) NOTE: THIS IS AN ABI BREAKING CHANGE - Python: Fix the ability to `getattribute()` of int64 and uint64 metadata or attributes. AcademySoftwareFoundation#3555 (2.4.4.0) - Build: Improvements to the generated cmake config files when building static libraries. AcademySoftwareFoundation#3552 AcademySoftwareFoundation#3557 (2.4.4.0) - Support for gcc 12.1. AcademySoftwareFoundation#3480 (2.4.2.1) AcademySoftwareFoundation#3551 (2.4.4.0) - Support building with clang 15.0. AcademySoftwareFoundation#3563 (2.4.4.0) - Fix cross-compiling on Android failing due to `-latomic` check. AcademySoftwareFoundation#3560 (2.4.4.0) - Fix building on iOS. AcademySoftwareFoundation#3562 (2.4.4.0) Note that we bumped the version to from 2.4.3.x 2.4.4.0 to reflect the ABI break introduced by the last minute by the IC/TS addition of a new virtual function. ABI will not change again for 2.4.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes builds in projects that compile OpenImageIO as static libraries and don't themselves depend on the image libraries used by OpenImageIO such as PNG, JPEG or TIFF.
When OpenImageIO is built as a static library its targets have e.g. PNG::PNG among INTERFACE_LINK_LIBRARIES. If the including project does not itself depend on PNG, the following error would be observed:
Checklist:
have previously submitted a Contributor License Agreement
(individual, and if there is any way my
employers might think my programming belongs to them, then also
corporate).
(adding new test cases if necessary).