summaryrefslogtreecommitdiff
path: root/cmake/config/common.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/config/common.cmake')
-rw-r--r--cmake/config/common.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/config/common.cmake b/cmake/config/common.cmake
index d95d0ec7a2..96b105c6c0 100644
--- a/cmake/config/common.cmake
+++ b/cmake/config/common.cmake
@@ -2,6 +2,7 @@ include(CheckSymbolExists)
2include(CheckIncludeFile) 2include(CheckIncludeFile)
3include(CheckTypeSize) 3include(CheckTypeSize)
4include(FindPkgConfig) 4include(FindPkgConfig)
5include(FindJPEG)
5include(CTest) 6include(CTest)
6find_package(Threads REQUIRED) 7find_package(Threads REQUIRED)
7 8
@@ -10,7 +11,9 @@ pkg_check_modules(LIBSYSTEMD libsystemd)
10pkg_check_modules(VALGRIND valgrind) 11pkg_check_modules(VALGRIND valgrind)
11pkg_check_modules(OPENSSL openssl>=1.0) 12pkg_check_modules(OPENSSL openssl>=1.0)
12pkg_check_modules(GNUTLS gnutls>=2.12.16) 13pkg_check_modules(GNUTLS gnutls>=2.12.16)
13pkg_check_modules(LIBJPEG libjpeg REQUIRED) 14if (NOT JPEG_FOUND)
15 error("a jpeg library is needed.")
16endif()
14 17
15set(SUGGEST_VALGRIND OFF) 18set(SUGGEST_VALGRIND OFF)
16if("${BUILD_PROFILE}" STREQUAL "dev") 19if("${BUILD_PROFILE}" STREQUAL "dev")