]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | diff --git a/dlib/cmake_utils/find_libjpeg.cmake b/dlib/cmake_utils/find_libjpeg.cmake |
2 | index 3b9e656..d741f31 100644 | |
3 | --- a/dlib/cmake_utils/find_libjpeg.cmake | |
4 | +++ b/dlib/cmake_utils/find_libjpeg.cmake | |
5 | @@ -14,7 +14,7 @@ if (DEFINED JPEG_FOUND) | |
6 | return() | |
7 | endif() | |
8 | ||
9 | -find_package(JPEG QUIET) | |
10 | +find_package(JPEG REQUIRED) | |
11 | ||
12 | if(JPEG_FOUND) | |
13 | set(JPEG_TEST_CMAKE_FLAGS | |
14 | @@ -31,7 +31,7 @@ if(JPEG_FOUND) | |
15 | message (STATUS "Found system copy of libjpeg: ${JPEG_LIBRARY}") | |
16 | if(NOT test_for_libjpeg_worked) | |
17 | set(JPEG_FOUND 0) | |
18 | - message (STATUS "System copy of libjpeg is broken or too old. Will build our own libjpeg and use that instead.") | |
19 | + message (FATAL_ERROR "System copy of libjpeg is broken or too old. Will build our own libjpeg and use that instead.") | |
20 | endif() | |
21 | endif() | |
22 | ||
23 | diff --git a/dlib/cmake_utils/find_libpng.cmake b/dlib/cmake_utils/find_libpng.cmake | |
24 | index 1b35604..489a4c8 100644 | |
25 | --- a/dlib/cmake_utils/find_libpng.cmake | |
26 | +++ b/dlib/cmake_utils/find_libpng.cmake | |
27 | @@ -14,7 +14,7 @@ if (DEFINED PNG_FOUND) | |
28 | return() | |
29 | endif() | |
30 | ||
31 | -find_package(PNG QUIET) | |
32 | +find_package(PNG REQUIRED) | |
33 | ||
34 | if(PNG_FOUND) | |
35 | set(PNG_TEST_CMAKE_FLAGS | |
36 | @@ -31,7 +31,7 @@ if(PNG_FOUND) | |
37 | message (STATUS "Found system copy of libpng: ${PNG_LIBRARIES}") | |
38 | if(NOT test_for_libpng_worked) | |
39 | set(PNG_FOUND 0) | |
40 | - message (STATUS "System copy of libpng is broken. Will build our own libpng and use that instead.") | |
41 | + message (FATAL_ERROR "System copy of libpng is broken. Will build our own libpng and use that instead.") | |
42 | endif() | |
43 | endif() | |
44 |