aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/openimageio/fix-openimageio_include_dir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/openimageio/fix-openimageio_include_dir.patch')
-rw-r--r--vcpkg/ports/openimageio/fix-openimageio_include_dir.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/openimageio/fix-openimageio_include_dir.patch b/vcpkg/ports/openimageio/fix-openimageio_include_dir.patch
new file mode 100644
index 0000000..96e1db1
--- /dev/null
+++ b/vcpkg/ports/openimageio/fix-openimageio_include_dir.patch
@@ -0,0 +1,13 @@
+diff --git a/src/cmake/Config.cmake.in b/src/cmake/Config.cmake.in
+index 2a67ee3..11a5d67 100644
+--- a/src/cmake/Config.cmake.in
++++ b/src/cmake/Config.cmake.in
+@@ -53,7 +53,7 @@ endif ()
+
+ # Compute the installation prefix relative to this file. Note that cmake files are installed
+ # to ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME} (see OIIO_CONFIG_INSTALL_DIR)
+-get_filename_component(_CURR_INSTALL_LIBDIR "${CMAKE_CURRENT_LIST_DIR}/../../" ABSOLUTE)
++get_filename_component(_CURR_INSTALL_LIBDIR "${CMAKE_CURRENT_LIST_DIR}/../" ABSOLUTE)
+ get_filename_component(_ABS_CMAKE_INSTALL_LIBDIR "@CMAKE_INSTALL_FULL_LIBDIR@" ABSOLUTE)
+ get_filename_component(_ABS_CMAKE_INSTALL_INCLUDEDIR "@CMAKE_INSTALL_FULL_INCLUDEDIR@" ABSOLUTE)
+ file(RELATIVE_PATH _INCLUDEDIR_RELATIVE_TO_LIBDIR