-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Use exported targets for libjpeg-turbo and bump min to 2.1 (#3987
) libjpeg-turbo has exported cmake configs since its version 2.1. Relying on this simplifies the build and allows us to completely remove the troublesome Findlibjpeg-turbo.cmake. This implies raising the floor for libjpeg-turbo support to 2.1 (the current release is 3.0) which was released in April 2021 (beta in Nov 2020). That's cutting it a little close (we usually support dependencies going back at least 3 years at a minimum, and often significantly longer). But since this is an optional dependency anyway and simplifies the build, I'm tempted to do so. Signed-off-by: Larry Gritz <[email protected]>
- Loading branch information
Showing
8 changed files
with
35 additions
and
77 deletions.
There are no files selected for viewing
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# Copyright Contributors to the OpenImageIO project. | ||
# SPDX-License-Identifier: BSD-3-Clause and Apache-2.0 | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# https://github.com/OpenImageIO/oiio | ||
|
||
add_oiio_plugin (jpeginput.cpp jpegoutput.cpp | ||
INCLUDE_DIRS ${JPEG_INCLUDE_DIRS} | ||
LINK_LIBRARIES JPEG::JPEG) | ||
LINK_LIBRARIES | ||
$<TARGET_NAME_IF_EXISTS:libjpeg-turbo::jpeg> | ||
$<TARGET_NAME_IF_EXISTS:JPEG::JPEG> | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
# Copyright Contributors to the OpenImageIO project. | ||
# SPDX-License-Identifier: BSD-3-Clause and Apache-2.0 | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# https://github.com/OpenImageIO/oiio | ||
|
||
add_oiio_plugin (tiffinput.cpp tiffoutput.cpp | ||
LINK_LIBRARIES TIFF::TIFF JPEG::JPEG ZLIB::ZLIB) | ||
LINK_LIBRARIES TIFF::TIFF | ||
ZLIB::ZLIB | ||
$<TARGET_NAME_IF_EXISTS:libjpeg-turbo::jpeg> | ||
$<TARGET_NAME_IF_EXISTS:JPEG::JPEG> | ||
) | ||
|
||
# TODO: It's not clear that we need to explicitly list the ZLIB and JPEG | ||
# targets here, or if TIFF::TIFF is expected to carry them along if needed. |