osx_jpeg.patch 474 Bytes
Newer Older
Tiago de Freitas Pereira's avatar
Tiago de Freitas Pereira committed
1 2
--- dlib/CMakeLists.txt
+++ dlib/CMakeLists.txt
André Anjos's avatar
André Anjos committed
3
@@ -403,7 +403,7 @@
Tiago de Freitas Pereira's avatar
Tiago de Freitas Pereira committed
4 5 6 7 8 9 10 11 12
             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()