Browse Source

Better error information when minizip or zlib wasn't found

Vincent Lang 8 years ago
parent
commit
22aa60bb6e
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/CMakeLists.txt

+ 5 - 1
src/CMakeLists.txt

@@ -175,7 +175,11 @@ if(ZLIB_FOUND AND MINIZIP_LIBRARY)
   add_definitions(-DHAVE_MINIZIP)
 else()
   if(ENABLE_CODECS)
-    message(FATAL_ERROR "minizip/zlib required in this configuration")
+    if (ZLIB_FOUND)
+      message(FATAL_ERROR "minizip required in this configuration")
+    else()
+      message(FATAL_ERROR "zlib required in this configuration")
+    endif()
   endif()
 endif()