aboutsummaryrefslogtreecommitdiff
path: root/ports/dlib/fix-mac-jpeg.patch
diff options
context:
space:
mode:
authorSean Warren <s.warren@garvan.org.au>2019-02-28 18:52:31 +1100
committerPhil Christensen <philc@microsoft.com>2019-02-27 23:52:31 -0800
commitddf0043e94395c4cfdb633a5ceaa07d2016500fe (patch)
tree3f9d8fa889a7d97b1596acd7fc5d376039e87184 /ports/dlib/fix-mac-jpeg.patch
parent3881ade1591e78742ac3609cbb415cf6c6570178 (diff)
downloadvcpkg-ddf0043e94395c4cfdb633a5ceaa07d2016500fe.tar.gz
vcpkg-ddf0043e94395c4cfdb633a5ceaa07d2016500fe.zip
[dlib] fix mac, windows-static build (#5477)
Diffstat (limited to 'ports/dlib/fix-mac-jpeg.patch')
-rw-r--r--ports/dlib/fix-mac-jpeg.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/ports/dlib/fix-mac-jpeg.patch b/ports/dlib/fix-mac-jpeg.patch
new file mode 100644
index 000000000..5f961264b
--- /dev/null
+++ b/ports/dlib/fix-mac-jpeg.patch
@@ -0,0 +1,12 @@
+diff --git a/dlib/CMakeLists.txt b/dlib/CMakeLists.txt
+--- a/dlib/CMakeLists.txt
++++ b/dlib/CMakeLists.txt
+@@ -480,7 +480,7 @@
+ set(CMAKE_REQUIRED_LIBRARIES ${JPEG_LIBRARY})
+ CHECK_FUNCTION_EXISTS(jpeg_read_header LIBJPEG_IS_GOOD)
+ endif()
+- if (JPEG_FOUND AND LIBJPEG_IS_GOOD AND NOT APPLE)
++ if (JPEG_FOUND AND LIBJPEG_IS_GOOD)
+ include_directories(${JPEG_INCLUDE_DIR})
+ set (dlib_needed_libraries ${dlib_needed_libraries} ${JPEG_LIBRARY})
+ else()