From fb906dca8b84d03267099cc3174c50e932a55236 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Thu, 15 Oct 2015 07:19:16 +1030 Subject: [PATCH 2/2] cmake: synchronize warnings with configure --- CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ff81531..6102a93 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -737,6 +737,22 @@ endif(LCMS2_FOUND) show_end_message_yesno("command line utils" ENABLE_UTILS) show_end_message("test data dir" ${TESTDATADIR}) +if(NOT ENABLE_SPLASH AND NOT CAIRO_FOUND) + message("Warning: There is no rendering backend enabled") +endif(NOT ENABLE_SPLASH AND NOT CAIRO_FOUND) + if(USE_FIXEDPOINT AND USE_FLOAT) message("Warning: Single precision and fixed point options should not be enabled at the same time") endif(USE_FIXEDPOINT AND USE_FLOAT) + +if(NOT ENABLE_LIBJPEG) + message("Warning: Using libjpeg is recommended. The internal DCT decoder is unmaintained.") +endif(NOT ENABLE_LIBJPEG) + +if(ENABLE_ZLIB) + message("Warning: Using zlib is not totally safe") +endif(ENABLE_ZLIB) + +if(NOT WITH_OPENJPEG) + message("Warning: Using libopenjpeg is recommended. The internal JPX decoder is unmaintained.") +endif(NOT WITH_OPENJPEG) -- 2.1.4