aboutsummaryrefslogtreecommitdiff
path: root/ports/openimageio/fix-dependfmt.patch
diff options
context:
space:
mode:
authorLily <47812810+LilyWangL@users.noreply.github.com>2020-07-08 04:48:51 +0800
committerGitHub <noreply@github.com>2020-07-07 13:48:51 -0700
commit12333a6b96848445fd04b19a8f7e00cdaf2ad0b6 (patch)
tree7ab591c3f5a99e5af7442a9eea2789d8016873ac /ports/openimageio/fix-dependfmt.patch
parent279a28e81d73d400e307cd8db829628c3af196da (diff)
downloadvcpkg-12333a6b96848445fd04b19a8f7e00cdaf2ad0b6.tar.gz
vcpkg-12333a6b96848445fd04b19a8f7e00cdaf2ad0b6.zip
[openimageio] Update to version 2.1.16.0 (#11767)
Diffstat (limited to 'ports/openimageio/fix-dependfmt.patch')
-rw-r--r--ports/openimageio/fix-dependfmt.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/openimageio/fix-dependfmt.patch b/ports/openimageio/fix-dependfmt.patch
new file mode 100644
index 000000000..f0791f85e
--- /dev/null
+++ b/ports/openimageio/fix-dependfmt.patch
@@ -0,0 +1,13 @@
+diff --git a/src/cmake/externalpackages.cmake b/src/cmake/externalpackages.cmake
+index 4f1dfaf..1a17d1e 100644
+--- a/src/cmake/externalpackages.cmake
++++ b/src/cmake/externalpackages.cmake
+@@ -385,5 +385,7 @@ macro (find_or_download_fmt)
+ checked_find_package (fmt REQUIRED)
+ endmacro()
+
+-find_or_download_fmt()
++find_package(fmt CONFIG REQUIRED)
++get_property(FMT_INCLUDES TARGET fmt::fmt PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
++checked_find_package (fmt CONFIG REQUIRED)
+ include_directories (${FMT_INCLUDES})