diff options
Diffstat (limited to 'Modules/FindJPEG.cmake')
-rw-r--r-- | Modules/FindJPEG.cmake | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Modules/FindJPEG.cmake b/Modules/FindJPEG.cmake index 5bf1ae6..6ff0584 100644 --- a/Modules/FindJPEG.cmake +++ b/Modules/FindJPEG.cmake @@ -12,10 +12,15 @@ FIND_PATH(JPEG_INCLUDE_DIR jpeglib.h /usr/include ) -FIND_LIBRARY(JPEG_LIBRARY jpeg -/usr/lib -/usr/local/lib -) +IF(BORLAND) + SET(JPEG_NAMES ${JPEG_NAMES} jpeg-bcc) +ENDIF(BORLAND) +SET(JPEG_NAMES ${JPEG_NAMES} jpeg) + +FIND_LIBRARY(JPEG_LIBRARY + NAMES ${JPEG_NAMES} + PATHS /usr/lib /usr/local/lib + ) IF (JPEG_LIBRARY) IF (JPEG_INCLUDE_DIR) |