Pass JPEG_INCLUDE_DIR to try_run while trying to determine the libjpeg version
On FreeBSD JPEG_INCLUDE_DIR is correctly set to /usr/local/include, yet it is not passed to try_run. Which makes the configure process fail with | -- Looking for libjpeg version in /usr/local/include/jpeglib.h | CMake Error at lib/CMakeLists.txt:27 (message): | Could not find jpeglib.h. This file comes with libjpeg. This patch passes it via INCLUDE_DIRECTORIES to try_run, fixing the configure. REVIEW: 126598
parent
853d593a
Please register or sign in to comment