aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackBoosY <yuzaiyang@beyondsoft.com>2019-12-29 19:17:08 -0800
committerJackBoosY <yuzaiyang@beyondsoft.com>2019-12-29 19:17:25 -0800
commit7400c26160e795f48a45c17a6c5db38c1b2fe59d (patch)
treebd81c6b02da557de90a9d5a9c8739bed04a36ebe
parent9d0fc9a47c82533a51f658b16d70ff685a974343 (diff)
downloadvcpkg-7400c26160e795f48a45c17a6c5db38c1b2fe59d.tar.gz
vcpkg-7400c26160e795f48a45c17a6c5db38c1b2fe59d.zip
[openimageio] Fix openimageio targets.cmake name
-rw-r--r--ports/openimageio/fix-config-cmake.patch12
-rw-r--r--ports/openimageio/portfile.cmake1
2 files changed, 13 insertions, 0 deletions
diff --git a/ports/openimageio/fix-config-cmake.patch b/ports/openimageio/fix-config-cmake.patch
new file mode 100644
index 000000000..f61afccbd
--- /dev/null
+++ b/ports/openimageio/fix-config-cmake.patch
@@ -0,0 +1,12 @@
+diff --git a/src/cmake/Config.cmake.in b/src/cmake/Config.cmake.in
+index c6e1a13..3d784f3 100644
+--- a/src/cmake/Config.cmake.in
++++ b/src/cmake/Config.cmake.in
+@@ -6,5 +6,5 @@ include(CMakeFindDependencyMacro)
+ # e.g. if switching to Boost::Boost instead of using ${Boost_LIBRARY_DIRS} the add:
+ # find_dependency(Boost @Boost_VERSION@)
+
+-include("${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake")
++include("${CMAKE_CURRENT_LIST_DIR}/OpenImageIOTargets.cmake")
+ check_required_components("@PROJECT_NAME@")
+\ No newline at end of file
diff --git a/ports/openimageio/portfile.cmake b/ports/openimageio/portfile.cmake
index cd4c65fd8..3a9a84d5b 100644
--- a/ports/openimageio/portfile.cmake
+++ b/ports/openimageio/portfile.cmake
@@ -8,6 +8,7 @@ vcpkg_from_github(
fix-dependency.patch
fix_static_build.patch
fix-tools-path.patch
+ fix-config-cmake.patch
)
file(REMOVE_RECURSE "${SOURCE_PATH}/ext")