Diff of /CMakeModules/FindJPEG.cmake [9e26cc] .. [832b36] Maximize Restore

  Switch to side-by-side view

--- a/CMakeModules/FindJPEG.cmake
+++ b/CMakeModules/FindJPEG.cmake
@@ -17,6 +17,7 @@
 FIND_PATH(JPEG_INCLUDE_DIR jpeglib.h
   /usr/local/include
   /usr/include
+  ${SOURCE_BASE_DIR}/jpeg-8c
   ${SOURCE_BASE_DIR}/jpeg-8b
   ${SOURCE_BASE_DIR}/jpeg-8a
   ${SOURCE_BASE_DIR}/jpeg-8
@@ -28,7 +29,7 @@
 find_library_with_debug(JPEG_LIBRARIES
   WIN32_DEBUG_POSTFIX d
   NAMES jpeg libjpeg wxjpeg
-  PATHS /usr/lib /usr/local/lib ${SOURCE_BASE_DIR}/jpeg-8b/lib ${SOURCE_BASE_DIR}/jpeg-8a/Release ${SOURCE_BASE_DIR}/jpeg-8/Release ${SOURCE_BASE_DIR}/jpeg-8/lib ${wxWidgets_LIB_DIR}
+  PATHS ${SYSTEM_LIB_DIRS} ${SOURCE_BASE_DIR}/jpeg-8c/lib ${SOURCE_BASE_DIR}/jpeg-8b/lib ${SOURCE_BASE_DIR}/jpeg-8a/Release ${SOURCE_BASE_DIR}/jpeg-8/Release ${SOURCE_BASE_DIR}/jpeg-8/lib ${wxWidgets_LIB_DIR}
 )