Skip to content

Commit

Permalink
CMake: log when libjpeg-turbo was found via header file
Browse files Browse the repository at this point in the history
  • Loading branch information
bk138 committed Dec 2, 2023
1 parent bff9612 commit 784cccb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ if(WITH_JPEG)
file(STRINGS ${JPEGLIB_H_PATH} FOUND_LIBJPEG_TURBO REGEX "JCS_EXT_RGB")
if(NOT FOUND_LIBJPEG_TURBO)
message(WARNING "*** The libjpeg library you are building against is not libjpeg-turbo. Performance will be reduced. You can obtain libjpeg-turbo from: https://sourceforge.net/projects/libjpeg-turbo/files/ ***")
else()
message(STATUS "Detected libjpeg-turbo via ${JPEGLIB_H_PATH}")
endif()
endif()
endif(JPEG_FOUND)
Expand Down

0 comments on commit 784cccb

Please sign in to comment.