From 784cccbb724517ee4e36d9938f93b9ee168a29e7 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Sat, 2 Dec 2023 12:36:54 +0100 Subject: [PATCH] CMake: log when libjpeg-turbo was found via header file --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9079641c..d9e560dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)