Skip to content

Commit

Permalink
[openimageio] do not install deprecated FindOpenImageIO (#21162)
Browse files Browse the repository at this point in the history
* [openimageio] do not install deprecated FindOpenImageIO

OpenImageIO provides cmake Config/Target files, so there is no more need for a FindOpenImageIO.cmake.
This hides openimageio modules like OpenImageIO_Util.

* Remove wrapper

Co-authored-by: PhoebeHui <20694052+PhoebeHui@users.noreply.github.com>
  • Loading branch information
fabiencastan and PhoebeHui authored Dec 29, 2021
1 parent df62d5c commit 5d44acb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
8 changes: 2 additions & 6 deletions ports/openimageio/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
vcpkg_add_to_path("${PYTHON3_DIR}")

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
-DOIIO_BUILD_TESTS=OFF
Expand Down Expand Up @@ -83,10 +83,6 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/doc"
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share")

file(COPY "${SOURCE_PATH}/src/cmake/modules/FindOpenImageIO.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/OpenImageIO")
file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_fixup_pkgconfig()

# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

vcpkg_fixup_pkgconfig()
6 changes: 0 additions & 6 deletions ports/openimageio/vcpkg-cmake-wrapper.cmake

This file was deleted.

2 changes: 1 addition & 1 deletion ports/openimageio/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "openimageio",
"version": "2.3.7.2",
"port-version": 4,
"port-version": 5,
"description": "A library for reading and writing images, and a bunch of related classes, utilities, and application.",
"homepage": "https://github.com/OpenImageIO/oiio",
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4998,7 +4998,7 @@
},
"openimageio": {
"baseline": "2.3.7.2",
"port-version": 4
"port-version": 5
},
"openjpeg": {
"baseline": "2.4.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/openimageio.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f9b44bac4dcc0735f5efc3e8f0d439790b7efbd0",
"version": "2.3.7.2",
"port-version": 5
},
{
"git-tree": "8b1ce552e00d88857ad35695435b353caf9ad4c2",
"version": "2.3.7.2",
Expand Down

0 comments on commit 5d44acb

Please sign in to comment.